Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
f8442b33
Commit
f8442b33
authored
Sep 12, 2011
by
tbrehm
Browse files
Fixed: FS#1737 - WebDAV - PHP files
Fixed: PHP notice in tform_actions.inc.php
parent
ff765b86
Changes
2
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/tform_actions.inc.php
View file @
f8442b33
...
...
@@ -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
();
...
...
server/conf/vhost.conf.master
View file @
f8442b33
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment