Author: miguel
Date: 2006-11-22 18:44:28 -0500 (Wed, 22 Nov 2006)
New Revision: 68375
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/SessionStateSection.cs
Log:
2006-11-22 Miguel de Icaza <[EMAIL PROTECTED]>
* SessionStateSection.cs: Do not call Enum.Parse with a null
argument, prevents an exception from being thrown.
Modified: trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-11-22 22:00:15 UTC (rev 68374)
+++ trunk/mcs/class/System.Web/System.Web.Configuration_2.0/ChangeLog
2006-11-22 23:44:28 UTC (rev 68375)
@@ -1,3 +1,8 @@
+2006-11-22 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * SessionStateSection.cs: Do not call Enum.Parse with a null
+ argument, prevents an exception from being thrown.
+
2006-11-20 Marek Habersack <[EMAIL PROTECTED]>
* GlobalizationSection.cs: Added support for "auto" cultures and
Modified:
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/SessionStateSection.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/SessionStateSection.cs
2006-11-22 22:00:15 UTC (rev 68374)
+++
trunk/mcs/class/System.Web/System.Web.Configuration_2.0/SessionStateSection.cs
2006-11-22 23:44:28 UTC (rev 68375)
@@ -223,8 +223,10 @@
HttpCookieMode ParseCookieMode (string s)
{
- if (s == "true") return HttpCookieMode.UseUri;
- else if (s == "false") return HttpCookieMode.UseCookies;
+ if (s == "true")
+ return HttpCookieMode.UseUri;
+ else if (s == "false" || s == null)
+ return HttpCookieMode.UseCookies;
else {
try {
return (HttpCookieMode)Enum.Parse
(typeof(HttpCookieMode), s);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches