Author: spouliot
Date: 2005-08-31 09:03:25 -0400 (Wed, 31 Aug 2005)
New Revision: 49177

Modified:
   trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
   trunk/mcs/class/System.XML/System.Xml.XPath/XPathException.cs
Log:
2005-08-31  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * XPathException.cs: Added a Demand for SerializationFormatter on
        GetObjectData method.



Modified: trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog       2005-08-31 
13:02:11 UTC (rev 49176)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/ChangeLog       2005-08-31 
13:03:25 UTC (rev 49177)
@@ -1,3 +1,8 @@
+2005-08-31  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * XPathException.cs: Added a Demand for SerializationFormatter on
+       GetObjectData method.
+
 2005-08-03  Gert Driesen  <[EMAIL PROTECTED]>
 
        * XPathNavigator.cs: GetNamespacesInScope returns generic IDictionary

Modified: trunk/mcs/class/System.XML/System.Xml.XPath/XPathException.cs
===================================================================
--- trunk/mcs/class/System.XML/System.Xml.XPath/XPathException.cs       
2005-08-31 13:02:11 UTC (rev 49176)
+++ trunk/mcs/class/System.XML/System.Xml.XPath/XPathException.cs       
2005-08-31 13:03:25 UTC (rev 49177)
@@ -5,9 +5,8 @@
 //   Tim Coleman ([EMAIL PROTECTED])
 //
 // (C) Copyright 2002 Tim Coleman
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
 //
-
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -29,6 +28,7 @@
 //
 
 using System.Runtime.Serialization;
+using System.Security.Permissions;
 
 namespace System.Xml.XPath
 {
@@ -72,6 +72,7 @@
 
 #region Methods
 
+               [SecurityPermission (SecurityAction.Demand, 
SerializationFormatter = true)]
                public override void GetObjectData (SerializationInfo info, 
StreamingContext context)
                {
                        base.GetObjectData (info, context);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to