瀏覽代碼

2007-08-19 Juraj Skripsky <[email protected]>

	* GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
	for scope case insensitive. Fixes bug #82479.


svn path=/trunk/mcs/; revision=84359
Juraj Skripsky 18 年之前
父節點
當前提交
fa468fda59

+ 5 - 0
mcs/class/System.Web/System.Web.Compilation/ChangeLog

@@ -1,3 +1,8 @@
+2007-08-19  Juraj Skripsky <[email protected]>
+
+	* GlobalAsaxCompiler.cs (ProcessObjects): Make string comparison
+	for scope case insensitive. Fixes bug #82479.
+
 2007-08-14  Marek Habersack  <[email protected]>
 
 	* TemplateControlCompiler.cs: remove dead code.

+ 3 - 2
mcs/class/System.Web/System.Web.Compilation/GlobalAsaxCompiler.cs

@@ -30,6 +30,7 @@
 //
 using System;
 using System.Collections;
+using System.Globalization;
 using System.Web.UI;
 
 namespace System.Web.Compilation
@@ -80,11 +81,11 @@ namespace System.Web.Compilation
 					continue;
 				}
 				
-				if (tag.Scope == "session") {
+				if (String.Compare (tag.Scope, "session", true, CultureInfo.InvariantCulture) == 0) {
 					sessionObjectTags.Add (tag);
 					CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,
 										     false, false);
-				} else if (tag.Scope == "application") {
+				} else if (String.Compare (tag.Scope, "application", true, CultureInfo.InvariantCulture) == 0) {
 					applicationObjectTags.Add (tag);
 					CreateFieldForObject (tag.Type, tag.ObjectID);
 					CreateApplicationOrSessionPropertyForObject (tag.Type, tag.ObjectID,