Commit f8442b33 authored by tbrehm's avatar tbrehm

Fixed: FS#1737 - WebDAV - PHP files

Fixed: PHP notice in tform_actions.inc.php
parent ff765b86
......@@ -139,7 +139,7 @@ class tform_actions {
session_write_close();
header($redirect);
// When a returnto variable is set
} elseif ($_SESSION["s"]["form"]["return_to_url"] != '') {
} elseif (isset($_SESSION["s"]["form"]["return_to_url"]) && $_SESSION["s"]["form"]["return_to_url"] != '') {
$redirect = $_SESSION["s"]["form"]["return_to_url"];
$_SESSION["s"]["form"]["return_to_url"] = '';
session_write_close();
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment