Kaynağa Gözat

2008-01-06 Marek Habersack <[email protected]>

	* ApplicationHost.cs: make sure that application with virtualDir
	"/a" and physicalDir "/b" and the other way around get different
	domain_id values

svn path=/trunk/mcs/; revision=92323
Marek Habersack 18 yıl önce
ebeveyn
işleme
1bbbe7488a

+ 1 - 1
mcs/class/System.Web/System.Web.Hosting/ApplicationHost.cs

@@ -205,7 +205,7 @@ namespace System.Web.Hosting {
 			// 
 			// Unique Domain ID
 			//
-			string domain_id = (virtualDir.GetHashCode () ^ physicalDir.GetHashCode () ^ tempDirTag).ToString ("x");
+			string domain_id = (virtualDir.GetHashCode () + 1 ^ physicalDir.GetHashCode () + 2 ^ tempDirTag).ToString ("x");
 
 			setup.ApplicationName = domain_id;
 			setup.DynamicBase = dynamic_dir;

+ 6 - 0
mcs/class/System.Web/System.Web.Hosting/ChangeLog

@@ -1,3 +1,9 @@
+2008-01-06  Marek Habersack  <[email protected]>
+
+	* ApplicationHost.cs: make sure that application with virtualDir
+	"/a" and physicalDir "/b" and the other way around get different
+	domain_id values.
+
 2007-12-13  Marek Habersack  <[email protected]>
 
 	* ApplicationManager.cs, ApplicationHost.cs,