* RemotingConfiguration.cs: The value for customErrors tag must be
case-insensitive. Fixes bug #76466 (patch by Robert Jordan).
svn path=/trunk/mcs/; revision=51861
+2005-10-18 Lluis Sanchez Gual <lluis@novell.com>
+
+ * RemotingConfiguration.cs: The value for customErrors tag must be
+ case-insensitive. Fixes bug #76466 (patch by Robert Jordan).
+
2005-10-17 Lluis Sanchez Gual <lluis@novell.com>
* RemotingConfiguration.cs: Rethrow catched exceptions
internal static void SetCustomErrorsMode (string mode)
{
- if (mode != "on" && mode != "off" && mode != "remoteOnly")
+ if (mode == null)
+ throw new RemotingException ("mode attribute is required");
+
+ // the mode is case insensitive
+ string m = mode.ToLower ();
+
+ if (m != "on" && m != "off" && m != "remoteonly")
throw new RemotingException ("Invalid custom error mode: " + mode);
- _errorMode = mode;
+ _errorMode = m;
}
}