From: Richard Alimi <ralimi@us.ibm.com>

The following patch allows spaces in usernames and passwords in HTTP Basic
authentication for REST services.
0.6.0-stable
Dr Scofield 2008-08-15 07:14:17 +00:00
parent e6e01cee17
commit 8606a86d5c
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory
private static Regex digestParm2 = new Regex("\\s*(?<parm>\\w+)\\s*=\\s*(?<pval>[^\\p{P}\\s]+)",
RegexOptions.Compiled | RegexOptions.IgnoreCase);
private static Regex reuserPass = new Regex("\\s*(?<user>[^:]+)\\s*:\\s*(?<pass>\\S*)",
private static Regex reuserPass = new Regex("(?<user>[^:]+):(?<pass>[\\S\\s]*)",
RegexOptions.Compiled | RegexOptions.IgnoreCase);
// For efficiency, we create static instances of these objects