diff options
author | Marek Habersack <grendel@twistedcode.net> | 2007-01-20 01:18:37 +0300 |
---|---|---|
committer | Marek Habersack <grendel@twistedcode.net> | 2007-01-20 01:18:37 +0300 |
commit | 232fb9caac27864f3f090114f5065ebe55332d37 (patch) | |
tree | c92b1162d9646528c1259048ef520a2bcf80409c /mcs/class/System.Web/System.Web.Hosting/SimpleWorkerRequest.cs | |
parent | 45d5a3bfb87853eb7b15eb81585bc23e5b413d4e (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.cs | 4 |
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"); |