From 21fb7cb7cf07d5ccf8301bc4d3dd9546adf42a9f Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Mon, 25 Sep 2017 15:17:55 +0200 Subject: [PATCH] Fixed #4761 Webdav login is in a loop --- server/plugins-available/apache2_plugin.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php index a9b321f2cf..e8b2feb7e1 100644 --- a/server/plugins-available/apache2_plugin.inc.php +++ b/server/plugins-available/apache2_plugin.inc.php @@ -2789,7 +2789,11 @@ class apache2_plugin { $output .= " DAV On\n"; $output .= ' BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On'."\n"; $output .= " AuthType Digest\n"; - $output .= " AuthName \"Restricted Area\"\n"; + if($fn != '' && $fn != '/') { + $output .= " AuthName \"" . $fn . "\"\n"; + } else { + $output .= " AuthName \"Restricted Area\"\n"; + } $output .= " AuthUserFile " . $webdavRoot . '/' . $file . "\n"; $output .= " Require valid-user \n"; $output .= " Options +Indexes \n"; -- GitLab