blob: 1d9db00dc1e64011339464e6a8259dd3028ca08e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
--- trunk/xsp/src/Mono.WebServer/MonoWorkerRequest.cs 2005/09/07 05:09:32 49611
+++ trunk/xsp/src/Mono.WebServer/MonoWorkerRequest.cs 2006/04/25 20:16:19 59868
@@ -223,10 +223,14 @@
if (path.StartsWith (HostVPath) && (path.Length == len || path [len] == '/'))
path = path.Substring (len + 1);
- if (path.Length > 0 && path [0] == '/')
+ while (path.Length > 0 && path [0] == '/') {
path = path.Substring (1);
+ }
+
+ if (Path.DirectorySeparatorChar != '/')
+ path = path.Replace ('/', Path.DirectorySeparatorChar);
- return Path.Combine (HostPath, path.Replace ('/', Path.DirectorySeparatorChar));
+ return Path.Combine (HostPath, path);
}
protected abstract bool GetRequestData ();
|