Author: zoltan
Date: 2005-05-25 07:20:21 -0400 (Wed, 25 May 2005)
New Revision: 44991
Modified:
trunk/mcs/class/corlib/System.Reflection/Assembly.cs
trunk/mcs/class/corlib/System.Reflection/ChangeLog
Log:
2005-05-25 Zoltan Varga <[EMAIL PROTECTED]>
* Assembly.cs: Avoid security checks if Assembly.Location is "".
Modified: trunk/mcs/class/corlib/System.Reflection/Assembly.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Assembly.cs 2005-05-25
11:13:39 UTC (rev 44990)
+++ trunk/mcs/class/corlib/System.Reflection/Assembly.cs 2005-05-25
11:20:21 UTC (rev 44991)
@@ -159,7 +159,7 @@
public virtual String Location {
get {
string loc = get_location ();
- if (SecurityManager.SecurityEnabled) {
+ if ((loc != String.Empty) &&
SecurityManager.SecurityEnabled) {
// we cannot divulge local file
informations
new FileIOPermission
(FileIOPermissionAccess.PathDiscovery, loc).Demand ();
}
Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-05-25 11:13:39 UTC
(rev 44990)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog 2005-05-25 11:20:21 UTC
(rev 44991)
@@ -1,3 +1,7 @@
+2005-05-25 Zoltan Varga <[EMAIL PROTECTED]>
+
+ * Assembly.cs: Avoid security checks if Assembly.Location is "".
+
2005-05-20 Zoltan Varga <[EMAIL PROTECTED]>
* TypeDelegator.cs: Implement some methods.
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches