Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-09-22 02:02:23 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2005-09-22 02:02:23 +0400
commit5a181e61d325b0a2a29d6d14e2706aba4b774fc0 (patch)
tree6040248e39cae62a838981cce490e788588cacc4 /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
parent3972b5eece18f922254c2671f2da822101c2a667 (diff)
2005-09-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* SimpleWorkerRequest.cs: fix GetUriPath() for paths ending in '/'. svn path=/trunk/mcs/; revision=50421
Diffstat (limited to 'mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
index f73ff7f1ba8..5f603b0f256 100644
--- a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
+++ b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
@@ -212,6 +212,9 @@ namespace System.Web.Hosting {
public override string GetUriPath ()
{
+ int length = app_virtual_dir.Length;
+ if (length > 0 && app_virtual_dir [length - 1] == '/')
+ return app_virtual_dir + page;
return app_virtual_dir + "/" + page;
}