Skip to content
Snippets Groups Projects
Commit f8442b33 authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1737 - WebDAV - PHP files

Fixed: PHP notice in tform_actions.inc.php
parent ff765b86
No related branches found
No related tags found
2 merge requests!46Master,!21Master
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment