diff options
Diffstat (limited to 'lib/log.php')
-rw-r--r-- | lib/log.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/log.php b/lib/log.php index 3f3334801e5..e31e2a893c4 100644 --- a/lib/log.php +++ b/lib/log.php @@ -36,6 +36,8 @@ class OC_Log { call_user_func(array(self::$class, 'init')); } $log_class=self::$class; + // remove username/passswords from URLs before writing the to the log file + $message = preg_replace('/\/\/(.*):(.*)@/', '//xxx:xxx@', $message); $log_class::write($app, $message, $level); } } |