From 649a3fc39c16db79a529567d1ab54a2dc2d49fc8 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Wed, 11 Nov 2015 06:06:22 +0000 Subject: [PATCH] dont abort llDialog if buttons labels are longer than 24bytes, let udp truncate. This is not as spec but allows old scripts or with minor bugs to still work --- .../Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 8154c4f6f6..f9f21f1a28 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs @@ -7925,11 +7925,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api Error("llDialog", "Button label cannot be blank"); return; } +/* if (buttons.Data[i].ToString().Length > 24) { Error("llDialog", "Button label cannot be longer than 24 characters"); return; } +*/ buts[i] = buttons.Data[i].ToString(); }