From 8606a86d5cae84a21ad9f2c2e60922aded36c2c0 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Fri, 15 Aug 2008 07:14:17 +0000 Subject: [PATCH] From: Richard Alimi The following patch allows spaces in usernames and passwords in HTTP Basic authentication for REST services. --- OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs index 6e42b6cee5..94aecbd187 100644 --- a/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs +++ b/OpenSim/ApplicationPlugins/Rest/Inventory/RequestData.cs @@ -158,7 +158,7 @@ namespace OpenSim.ApplicationPlugins.Rest.Inventory private static Regex digestParm2 = new Regex("\\s*(?\\w+)\\s*=\\s*(?[^\\p{P}\\s]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase); - private static Regex reuserPass = new Regex("\\s*(?[^:]+)\\s*:\\s*(?\\S*)", + private static Regex reuserPass = new Regex("(?[^:]+):(?[\\S\\s]*)", RegexOptions.Compiled | RegexOptions.IgnoreCase); // For efficiency, we create static instances of these objects