From 9edd9373e77d1d9fe66e757f63884a77f6193f07 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 8 Oct 2013 20:19:39 +0200 Subject: [PATCH] remove username/passswords from URLs before writing the to the log file --- lib/log.php | 2 ++ 1 file changed, 2 insertions(+) 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); } } -- 2.39.5