diff options
author | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-04-30 02:05:39 +0400 |
---|---|---|
committer | Ben Maurer <benm@mono-cvs.ximian.com> | 2004-04-30 02:05:39 +0400 |
commit | 5f19f39562d72509ec0cfa5fd92dbaa73a355648 (patch) | |
tree | a5b8962f0c797f5ba75b3a548a00671a3971d0ed /mcs/class/corlib/System.Security/SecurityElement.cs | |
parent | 645621c0571e30e39f4944cda0699883ceaa1f21 (diff) |
...
svn path=/trunk/mcs/; revision=26350
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityElement.cs')
-rwxr-xr-x | mcs/class/corlib/System.Security/SecurityElement.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityElement.cs b/mcs/class/corlib/System.Security/SecurityElement.cs index f4317c6abdd..04936653b00 100755 --- a/mcs/class/corlib/System.Security/SecurityElement.cs +++ b/mcs/class/corlib/System.Security/SecurityElement.cs @@ -56,11 +56,11 @@ namespace System.Security // } // note: this is actually an incorrect implementation of MS, as for example the & // character is not a valid character in tag names. - private static char [] invalid_tag_chars = new char [] { ' ', '<', '>' }; - private static char [] invalid_text_chars = new char [] { '<', '>' }; - private static char [] invalid_attr_name_chars = new char [] { ' ', '<', '>' }; - private static char [] invalid_attr_value_chars = new char [] { '"', '<', '>' }; - private static char [] invalid_chars = new char [] { '<', '>', '"', '\'', '&' }; + private static readonly char [] invalid_tag_chars = new char [] { ' ', '<', '>' }; + private static readonly char [] invalid_text_chars = new char [] { '<', '>' }; + private static readonly char [] invalid_attr_name_chars = new char [] { ' ', '<', '>' }; + private static readonly char [] invalid_attr_value_chars = new char [] { '"', '<', '>' }; + private static readonly char [] invalid_chars = new char [] { '<', '>', '"', '\'', '&' }; public SecurityElement (string tag) : this (tag, null) { |