From f8442b3303bc790814109a78aa4362477acf7b15 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 12 Sep 2011 07:11:03 -0400
Subject: [PATCH] Fixed: FS#1737 - WebDAV - PHP files Fixed: PHP notice in tform_actions.inc.php

---
 server/conf/vhost.conf.master |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/server/conf/vhost.conf.master b/server/conf/vhost.conf.master
index 27484d4..d118124 100644
--- a/server/conf/vhost.conf.master
+++ b/server/conf/vhost.conf.master
@@ -203,6 +203,12 @@
     </IfModule>
 
     <IfModule mod_dav_fs.c>
+	  # Do not execute PHP files in webdav directory
+	  <Directory {tmpl_var name='document_root'}/webdav>
+	    <FilesMatch "\.ph(p3?|tml)$">
+          SetHandler None
+        </FilesMatch>
+	  </Directory>
       # DO NOT REMOVE THE COMMENTS!
       # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
       # WEBDAV BEGIN
@@ -411,6 +417,12 @@
     </IfModule>
 
     <IfModule mod_dav_fs.c>
+	  # Do not execute PHP files in webdav directory
+	  <Directory {tmpl_var name='document_root'}/webdav>
+	    <FilesMatch "\.ph(p3?|tml)$">
+          SetHandler None
+        </FilesMatch>
+	  </Directory>
       # DO NOT REMOVE THE COMMENTS!
       # IF YOU REMOVE THEM, WEBDAV WILL NOT WORK ANYMORE!
       # WEBDAV BEGIN

--
Gitblit v1.9.1