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:
Diffstat (limited to 'mcs/class/System.Web/System.Web.Util/UrlUtils.cs')
-rw-r--r--mcs/class/System.Web/System.Web.Util/UrlUtils.cs6
1 files changed, 1 insertions, 5 deletions
diff --git a/mcs/class/System.Web/System.Web.Util/UrlUtils.cs b/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
index a8f60ff3159..955c8d9a17b 100644
--- a/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
+++ b/mcs/class/System.Web/System.Web.Util/UrlUtils.cs
@@ -154,11 +154,7 @@ namespace System.Web.Util
slash = "/";
}
- string appvpath = HttpRuntime.AppDomainAppVirtualPath;
- if (appvpath.EndsWith ("/"))
- slash = "";
-
- return Reduce (appvpath + slash + relPath);
+ return Reduce (HttpRuntime.AppDomainAppVirtualPath + slash + relPath);
}
return Reduce (basePath + slash + relPath);