summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Kolab/Utils/DAVLogger.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Kolab/Utils/DAVLogger.php b/lib/Kolab/Utils/DAVLogger.php
index 311fc8a..3325544 100644
--- a/lib/Kolab/Utils/DAVLogger.php
+++ b/lib/Kolab/Utils/DAVLogger.php
@@ -101,6 +101,10 @@ class DAVLogger extends DAV\ServerPlugin
// catch all headers
$http_headers = array();
foreach (apache_request_headers() as $hdr => $value) {
+ if (strtolower($hdr) == 'authorization') {
+ $method = preg_match('/^((basic|digest)\s+)/i', $value, $m) ? $m[1] : '';
+ $value = $method . str_repeat('*', strlen($value) - strlen($method));
+ }
$http_headers[$hdr] = "$hdr: $value";
}