diff options
author | Dr Scofield | 2008-08-15 07:14:17 +0000 |
---|---|---|
committer | Dr Scofield | 2008-08-15 07:14:17 +0000 |
commit | 8606a86d5cae84a21ad9f2c2e60922aded36c2c0 (patch) | |
tree | 76eaefcb507bc4c6e95a7110bda83212c8f3b119 /OpenSim/ApplicationPlugins/Rest | |
parent | From: Richard Alimi <ralimi@us.ibm.com> (diff) | |
download | opensim-SC-8606a86d5cae84a21ad9f2c2e60922aded36c2c0.zip opensim-SC-8606a86d5cae84a21ad9f2c2e60922aded36c2c0.tar.gz opensim-SC-8606a86d5cae84a21ad9f2c2e60922aded36c2c0.tar.bz2 opensim-SC-8606a86d5cae84a21ad9f2c2e60922aded36c2c0.tar.xz |
From: Richard Alimi <ralimi@us.ibm.com>
The following patch allows spaces in usernames and passwords in HTTP Basic
authentication for REST services.
Diffstat (limited to 'OpenSim/ApplicationPlugins/Rest')
-rw-r--r-- | OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs index 6e42b6c..94aecbd 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs | |||
@@ -158,7 +158,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory | |||
158 | private static Regex digestParm2 = new Regex("\\s*(?<parm>\\w+)\\s*=\\s*(?<pval>[^\\p{P}\\s]+)", | 158 | private static Regex digestParm2 = new Regex("\\s*(?<parm>\\w+)\\s*=\\s*(?<pval>[^\\p{P}\\s]+)", |
159 | RegexOptions.Compiled | RegexOptions.IgnoreCase); | 159 | RegexOptions.Compiled | RegexOptions.IgnoreCase); |
160 | 160 | ||
161 | private static Regex reuserPass = new Regex("\\s*(?<user>[^:]+)\\s*:\\s*(?<pass>\\S*)", | 161 | private static Regex reuserPass = new Regex("(?<user>[^:]+):(?<pass>[\\S\\s]*)", |
162 | RegexOptions.Compiled | RegexOptions.IgnoreCase); | 162 | RegexOptions.Compiled | RegexOptions.IgnoreCase); |
163 | 163 | ||
164 | // For efficiency, we create static instances of these objects | 164 | // For efficiency, we create static instances of these objects |