All pastes #612914 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-10 18:15 UTC
rendered paste body
svn diff ./System.Web.Hosting/HostingEnvironment.cs
Index: System.Web.Hosting/HostingEnvironment.cs
===================================================================
--- System.Web.Hosting/HostingEnvironment.cs    (revision 81180)
+++ System.Web.Hosting/HostingEnvironment.cs    (working copy)
@@ -139,10 +139,12 @@
                        if (virtualPath == null || virtualPath == "")
                                throw new ArgumentNullException ("virtualPath");
 
+/*
                        if (UrlUtils.IsRelativeUrl (virtualPath)) {
                                string msg = String.Format ("The relative virtual path '{0}', is not allowed here.", virtualPath);
                                throw new ArgumentException (msg);
                        }
+*/
 
                        HttpContext context = HttpContext.Current;
                        if (context == null)