aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 3249ae2..36ca542 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -10145,8 +10145,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10145 if (str2 == String.Empty) 10145 if (str2 == String.Empty)
10146 return str1; 10146 return str1;
10147 10147
10148 byte[] data1 = Convert.FromBase64String(str1); 10148 byte[] data1;
10149 byte[] data2 = Convert.FromBase64String(str2); 10149 byte[] data2;
10150 try
10151 {
10152 data1 = Convert.FromBase64String(str1);
10153 data2 = Convert.FromBase64String(str2);
10154 }
10155 catch (Exception)
10156 {
10157 return new LSL_String(String.Empty);
10158 }
10150 10159
10151 byte[] d2 = new Byte[data1.Length]; 10160 byte[] d2 = new Byte[data1.Length];
10152 int pos = 0; 10161 int pos = 0;