diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2004-01-03 03:56:33 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2004-01-03 03:56:33 +0300 |
commit | 860cead17058983eb81c9ca855f232418aff6a86 (patch) | |
tree | 622c8e790c04cd2659b826ca45841d56623a9bec /mcs/class/corlib/System.Security/SecurityElement.cs | |
parent | c935882be6d3f2a5bd0772f70f2ed9a01927d162 (diff) |
2004-01-02 Sebastien Pouliot <spouliot@videotron.ca>
* AllowPartiallyTrustedCallersAttribute.cs: Fixed AttributeUsage using
1.2 documentation (AllowMultiple=false, Inherited=false)
* NamedPermissionSet.cs: Changes to match unit tests.
* PermissionSet.cs: Implemented Copy, Intersect, IsSubsetOf and Union
methods. Corrected FromXml.
* PolicyLevelType.cs: Added missing [Serializable].
* SecurityElement.cs: Fixed constructor to match unit tests.
* SecurityException.cs: Added support for GrantedSet and RefusedSet
properties (since 1.1). Set HResult to 0x8013150A.
* SecurityZone.cs: Added missing [Serializable].
* SuppressUnmanagedCodeSecurityAttribute.cs: Fixed AttributeUsage using
1.2 documentation (AllowMultiple=true, Inherited=false)
* UnverifiableCodeAttribute.cs: Fixed AttributeUsage using 1.2
documentation (AllowMultiple=true, Inherited=false)
svn path=/trunk/mcs/; revision=21610
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityElement.cs')
-rwxr-xr-x | mcs/class/corlib/System.Security/SecurityElement.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityElement.cs b/mcs/class/corlib/System.Security/SecurityElement.cs index 4aeb033328b..05317eaba79 100755 --- a/mcs/class/corlib/System.Security/SecurityElement.cs +++ b/mcs/class/corlib/System.Security/SecurityElement.cs @@ -42,7 +42,7 @@ namespace System.Security public SecurityElement (string tag, string text) { this.Tag = tag; - this.Text = (text == null) ? String.Empty : text; + this.Text = text; } public Hashtable Attributes { @@ -255,7 +255,9 @@ namespace System.Security public static bool IsValidText (string value) { - return value != null && value.IndexOfAny (invalid_text_chars) == -1; + if (value == null) + return true; + return value.IndexOfAny (invalid_text_chars) == -1; } public SecurityElement SearchForChildByTag (string tag) |