diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 13 |
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 94d3dee..db124f7 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -10138,8 +10138,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
10138 | if (str2 == String.Empty) | 10138 | if (str2 == String.Empty) |
10139 | return str1; | 10139 | return str1; |
10140 | 10140 | ||
10141 | byte[] data1 = Convert.FromBase64String(str1); | 10141 | byte[] data1; |
10142 | byte[] data2 = Convert.FromBase64String(str2); | 10142 | byte[] data2; |
10143 | try | ||
10144 | { | ||
10145 | data1 = Convert.FromBase64String(str1); | ||
10146 | data2 = Convert.FromBase64String(str2); | ||
10147 | } | ||
10148 | catch (Exception) | ||
10149 | { | ||
10150 | return new LSL_String(String.Empty); | ||
10151 | } | ||
10143 | 10152 | ||
10144 | byte[] d2 = new Byte[data1.Length]; | 10153 | byte[] d2 = new Byte[data1.Length]; |
10145 | int pos = 0; | 10154 | int pos = 0; |