diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-09-22 02:02:23 +0400 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2005-09-22 02:02:23 +0400 |
commit | 5a181e61d325b0a2a29d6d14e2706aba4b774fc0 (patch) | |
tree | 6040248e39cae62a838981cce490e788588cacc4 /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | |
parent | 3972b5eece18f922254c2671f2da822101c2a667 (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.cs | 3 |
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; } |