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:
authorMarek Habersack <grendel@twistedcode.net>2007-01-20 01:18:37 +0300
committerMarek Habersack <grendel@twistedcode.net>2007-01-20 01:18:37 +0300
commit232fb9caac27864f3f090114f5065ebe55332d37 (patch)
treec92b1162d9646528c1259048ef520a2bcf80409c /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
parent45d5a3bfb87853eb7b15eb81585bc23e5b413d4e (diff)
Fix for bug #80544
svn path=/trunk/mcs/; revision=71371
Diffstat (limited to 'mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
index 337440fb8b4..c79217479fa 100644
--- a/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
+++ b/mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs
@@ -255,7 +255,9 @@ namespace System.Web.Hosting {
{
if (!hosted)
return null;
-
+ if (path != null && path.Length == 0)
+ return app_physical_dir;
+
if (!path.StartsWith (app_virtual_dir))
throw new ArgumentNullException ("path is not rooted in the virtual directory");