diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs index 37d82d0..62c3fc2 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs | |||
@@ -9019,20 +9019,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
9019 | if (userAgent != null) | 9019 | if (userAgent != null) |
9020 | httpHeaders["User-Agent"] = userAgent; | 9020 | httpHeaders["User-Agent"] = userAgent; |
9021 | 9021 | ||
9022 | string authregex = @"^(https?:\/\/)(\w+):(\w+)@(.*)$"; | 9022 | string authregex = @"^(https?:\/\/)(\w+):(\w+)@(.*)$"; |
9023 | Regex r = new Regex(authregex); | 9023 | Regex r = new Regex(authregex); |
9024 | int[] gnums = r.GetGroupNumbers(); | 9024 | int[] gnums = r.GetGroupNumbers(); |
9025 | Match m = r.Match(url); | 9025 | Match m = r.Match(url); |
9026 | if ( m.Success ) { | 9026 | if (m.Success) { |
9027 | for (int i = 1; i < gnums.Length; i++) { | 9027 | for (int i = 1; i < gnums.Length; i++) { |
9028 | System.Text.RegularExpressions.Group g = m.Groups[gnums[i]]; | 9028 | System.Text.RegularExpressions.Group g = m.Groups[gnums[i]]; |
9029 | CaptureCollection cc = g.Captures; | 9029 | CaptureCollection cc = g.Captures; |
9030 | } | 9030 | } |
9031 | if ( m.Groups.Count == 5 ) { | 9031 | if (m.Groups.Count == 5) { |
9032 | httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString()))); | 9032 | httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString()))); |
9033 | url = m.Groups[1].ToString() + m.Groups[4].ToString(); | 9033 | url = m.Groups[1].ToString() + m.Groups[4].ToString(); |
9034 | } | 9034 | } |
9035 | } | 9035 | } |
9036 | 9036 | ||
9037 | UUID reqID = httpScriptMod. | 9037 | UUID reqID = httpScriptMod. |
9038 | StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body); | 9038 | StartHttpRequest(m_localID, m_itemID, url, param, httpHeaders, body); |