Author: mhabersack
Date: 2007-12-07 18:00:35 -0500 (Fri, 07 Dec 2007)
New Revision: 90969

Modified:
   trunk/mcs/tools/mconfig/ChangeLog
   trunk/mcs/tools/mconfig/data/config.xml
Log:
2007-12-08  Marek Habersack  <[EMAIL PROTECTED]>

        * data/config.xml: added a feature to protect the 'settings.map'
        file from download, if used by the application.


Modified: trunk/mcs/tools/mconfig/ChangeLog
===================================================================
--- trunk/mcs/tools/mconfig/ChangeLog   2007-12-07 22:20:14 UTC (rev 90968)
+++ trunk/mcs/tools/mconfig/ChangeLog   2007-12-07 23:00:35 UTC (rev 90969)
@@ -1,3 +1,8 @@
+2007-12-08  Marek Habersack  <[EMAIL PROTECTED]>
+
+       * data/config.xml: added a feature to protect the 'settings.map'
+       file from download, if used by the application.
+
 2007-11-21  Marek Habersack  <[EMAIL PROTECTED]>
 
        * mconfig.cs: drop the -F and -C parameters, default config files,

Modified: trunk/mcs/tools/mconfig/data/config.xml
===================================================================
--- trunk/mcs/tools/mconfig/data/config.xml     2007-12-07 22:20:14 UTC (rev 
90968)
+++ trunk/mcs/tools/mconfig/data/config.xml     2007-12-07 23:00:35 UTC (rev 
90969)
@@ -33,7 +33,35 @@
     </blocks>
   </feature>
 
+  <feature name="SettingsMapProtection" target="web">
+    <description><![CDATA[
+      Adds an entry to your config file which will prevent download of the 
'settings.map' file. The
+file is used by the settings mapping manager to modify configuration settings 
depending on the operating
+system under which your application runs. Add this feature only if you have 
your own custom 'settings.map'
+file in the top-level directory of your ASP.NET application.
+]]></description>
+    <blocks>
+      <block name="SettingsMap Handler"/>
+    </blocks>
+  </feature>
+
   <!-- configuration blocks required by the features -->
+  <configBlock name="SettingsMap Handler">
+    <requires>
+      <section name="configuration">
+       <section name="system.web">
+         <section name="httpHandlers" 
defaultBlockName="system.web.httpHandlers"/>
+       </section>
+      </section>
+    </requires>
+
+    <contents>
+      <![CDATA[
+<add verb="*" path="settings.map" type="System.Web.HttpForbiddenHandler, 
System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" 
/>
+]]>
+    </contents>
+  </configBlock>
+
   <configBlock name="AJAX config sections">
     <requires>
       <section name="configuration">

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

Reply via email to