Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-08 22:19:39 +0400
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-08 22:19:39 +0400
commit9edd9373e77d1d9fe66e757f63884a77f6193f07 (patch)
tree1a2873aff7b130c0c7b261310dbd8689d7d66338 /lib/log.php
parentd474e6f8f2410fe7cf670261c7d3de88aa7d59d2 (diff)
remove username/passswords from URLs before writing the to the log file
Diffstat (limited to 'lib/log.php')
-rw-r--r--lib/log.php2
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);
}
}