Skip to content

Commit 21fb7cb

Browse files
author
Till Brehm
committed
Fixed #4761 Webdav login is in a loop
1 parent e08dbbd commit 21fb7cb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/plugins-available/apache2_plugin.inc.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2789,7 +2789,11 @@ private function _patchVhostWebdav($fileName, $webdavRoot) {
27892789
$output .= " DAV On\n";
27902790
$output .= ' BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On'."\n";
27912791
$output .= " AuthType Digest\n";
2792-
$output .= " AuthName \"Restricted Area\"\n";
2792+
if($fn != '' && $fn != '/') {
2793+
$output .= " AuthName \"" . $fn . "\"\n";
2794+
} else {
2795+
$output .= " AuthName \"Restricted Area\"\n";
2796+
}
27932797
$output .= " AuthUserFile " . $webdavRoot . '/' . $file . "\n";
27942798
$output .= " Require valid-user \n";
27952799
$output .= " Options +Indexes \n";

0 commit comments

Comments
 (0)