From: Argiris K. <be...@us...> - 2005-12-22 23:07:01
|
Update of /cvsroot/magicajax/magicajax/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16333/Core Modified Files: AjaxCallHelper.cs MagicAjaxContext.cs MagicAjaxModule.cs Util.cs Log Message: Changed ToLower() to ToLower(System.Globalization.CultureInfo.InvariantCulture) Index: AjaxCallHelper.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/AjaxCallHelper.cs,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** AjaxCallHelper.cs 20 Dec 2005 23:51:40 -0000 1.16 --- AjaxCallHelper.cs 22 Dec 2005 23:06:51 -0000 1.17 *************** *** 323,327 **** public static void WriteSetVisibilityOfElementScript(string elementID, bool visible) { ! Write ( String.Format("AJAXCbo.SetVisibilityOfElement(\"{0}\",{1});\r\n", elementID ,visible.ToString().ToLower()) ); } --- 323,327 ---- public static void WriteSetVisibilityOfElementScript(string elementID, bool visible) { ! Write ( String.Format("AJAXCbo.SetVisibilityOfElement(\"{0}\",{1});\r\n", elementID ,visible.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture)) ); } Index: MagicAjaxContext.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxContext.cs,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** MagicAjaxContext.cs 11 Dec 2005 21:37:41 -0000 1.10 --- MagicAjaxContext.cs 22 Dec 2005 23:06:51 -0000 1.11 *************** *** 228,232 **** if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1) { ! switch (caps.Browser.ToLower()) { case "ie": --- 228,232 ---- if (caps.Browser != null && caps.EcmaScriptVersion.Major >= 1) { ! switch (caps.Browser.ToLower(System.Globalization.CultureInfo.InvariantCulture)) { case "ie": *************** *** 234,238 **** break; case "gecko": ! _isBrowserSupported = caps.Type.ToLower().StartsWith("firefox") && caps.MajorVersion >= 1; break; case "firefox": --- 234,238 ---- break; case "gecko": ! _isBrowserSupported = caps.Type.ToLower(System.Globalization.CultureInfo.InvariantCulture).StartsWith("firefox") && caps.MajorVersion >= 1; break; case "firefox": Index: Util.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/Util.cs,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Util.cs 21 Dec 2005 00:40:23 -0000 1.18 --- Util.cs 22 Dec 2005 23:06:51 -0000 1.19 *************** *** 69,73 **** { Match match = scriptMatches[i]; ! string tag = match.Value.ToLower(); if (tag.IndexOf(" src=") == -1) --- 69,73 ---- { Match match = scriptMatches[i]; ! string tag = match.Value.ToLower(System.Globalization.CultureInfo.InvariantCulture); if (tag.IndexOf(" src=") == -1) *************** *** 138,142 **** for (int j=0; j < attributes.Count; j++) { ! string attrname = attrnames[j].Value.ToLower(); attrNameValues.Add (attrname, attrvalues[j].Value); attrCaptures.Add (attrname, attributes[j]); --- 138,142 ---- for (int j=0; j < attributes.Count; j++) { ! string attrname = attrnames[j].Value.ToLower(System.Globalization.CultureInfo.InvariantCulture); attrNameValues.Add (attrname, attrvalues[j].Value); attrCaptures.Add (attrname, attributes[j]); *************** *** 146,153 **** // set to 'true', ignore it. We will need its value for the fingerprint. if ( attrNameValues.ContainsKey("excludefrompost") ! && (attrNameValues["excludefrompost"] as String).ToLower() == "true") continue; ! string tag = match.Groups["tag"].Value.ToLower(); string name = (string)attrNameValues["name"]; --- 146,153 ---- // set to 'true', ignore it. We will need its value for the fingerprint. if ( attrNameValues.ContainsKey("excludefrompost") ! && (attrNameValues["excludefrompost"] as String).ToLower(System.Globalization.CultureInfo.InvariantCulture) == "true") continue; ! string tag = match.Groups["tag"].Value.ToLower(System.Globalization.CultureInfo.InvariantCulture); string name = (string)attrNameValues["name"]; Index: MagicAjaxModule.cs =================================================================== RCS file: /cvsroot/magicajax/magicajax/Core/MagicAjaxModule.cs,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** MagicAjaxModule.cs 22 Dec 2005 19:18:43 -0000 1.51 --- MagicAjaxModule.cs 22 Dec 2005 23:06:51 -0000 1.52 *************** *** 159,163 **** bool unloadStoredPage = magicAjaxContext.Configuration.PageStore.UnloadStoredPage; ! page.RegisterStartupScript("AJAXCALL_HOOK", String.Format(STARTUP_SCRIPT_FORMAT, location, "AjaxCallObject.js", pageIsStored.ToString().ToLower(), unloadStoredPage.ToString().ToLower(), magicAjaxContext.Configuration.Tracing.ToString().ToLower())); } } --- 159,163 ---- bool unloadStoredPage = magicAjaxContext.Configuration.PageStore.UnloadStoredPage; ! page.RegisterStartupScript("AJAXCALL_HOOK", String.Format(STARTUP_SCRIPT_FORMAT, location, "AjaxCallObject.js", pageIsStored.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), unloadStoredPage.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture), magicAjaxContext.Configuration.Tracing.ToString().ToLower(System.Globalization.CultureInfo.InvariantCulture))); } } *************** *** 813,817 **** if (con is WebControl && ((WebControl)con).Attributes["ExcludeFromPost"] != null ! && ((WebControl)con).Attributes["ExcludeFromPost"].ToLower() == "true") continue; --- 813,817 ---- if (con is WebControl && ((WebControl)con).Attributes["ExcludeFromPost"] != null ! && ((WebControl)con).Attributes["ExcludeFromPost"].ToLower(System.Globalization.CultureInfo.InvariantCulture) == "true") continue; |