mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
From: Richard Alimi <ralimi@us.ibm.com>
The following patch allows spaces in usernames and passwords in HTTP Basic authentication for REST services.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user