fix osRequest*URL return type and threat level name

This commit is contained in:
UbitUmarov
2021-10-18 20:41:11 +01:00
parent d48aaee5d9
commit 3423e53043
3 changed files with 6 additions and 6 deletions

View File

@@ -4630,9 +4630,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
}
}
public LSL_String osRequestURL(LSL_List options)
public LSL_Key osRequestURL(LSL_List options)
{
CheckThreatLevel(ThreatLevel.Moderate, "osRequestSecureURL");
CheckThreatLevel(ThreatLevel.Moderate, "osRequestURL");
Hashtable opts = new Hashtable();
for (int i = 0 ; i < options.Length ; i++)
@@ -4647,7 +4647,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return ScriptBaseClass.NULL_KEY;
}
public LSL_String osRequestSecureURL(LSL_List options)
public LSL_Key osRequestSecureURL(LSL_List options)
{
CheckThreatLevel(ThreatLevel.Moderate, "osRequestSecureURL");

View File

@@ -35,7 +35,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public partial class ScriptBaseClass
{
// SCRIPTS CONSTANTS
public static readonly LSLInteger OS_APIVERSION = 19;
public static readonly LSLInteger OS_APIVERSION = 20;
public static readonly LSLInteger TRUE = 1;
public static readonly LSLInteger FALSE = 0;

View File

@@ -1172,12 +1172,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
return m_OSSL_Functions.osRegexIsMatch(input, pattern);
}
public LSL_String osRequestURL(LSL_List options)
public LSL_Key osRequestURL(LSL_List options)
{
return m_OSSL_Functions.osRequestURL(options);
}
public LSL_String osRequestSecureURL(LSL_List options)
public LSL_Key osRequestSecureURL(LSL_List options)
{
return m_OSSL_Functions.osRequestSecureURL(options);
}