Author: krasnov
Date: 2007-05-20 11:54:01 -0400 (Sun, 20 May 2007)
New Revision: 77726
Modified:
branches/mainsoft/gh20/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletWorkerRequest.jvm.cs
Log:
merge -r77724:77725
Modified:
branches/mainsoft/gh20/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletWorkerRequest.jvm.cs
===================================================================
---
branches/mainsoft/gh20/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletWorkerRequest.jvm.cs
2007-05-20 15:32:26 UTC (rev 77725)
+++
branches/mainsoft/gh20/mcs/class/Mainsoft.Web/Mainsoft.Web.Hosting/ServletWorkerRequest.jvm.cs
2007-05-20 15:54:01 UTC (rev 77726)
@@ -113,7 +113,12 @@
// the one containing more information wins.
if (contextPath.Length + servletPath.Length >
requestURI.Length)
requestURI = contextPath + servletPath;
-
+ else {
+ int contextPos =
requestURI.IndexOf(contextPath, StringComparison.Ordinal);
+ if (contextPos > 0)
+ requestURI = requestURI.Substring
(contextPos);
+ }
+
_requestUri = Uri.UnescapeDataString(requestURI);
const int dotInvokeLength = 7; //".invoke".Length
if (_requestUri.Length > dotInvokeLength &&
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches