aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log
diff options
context:
space:
mode:
authorJ0WI <J0WI@users.noreply.github.com>2021-03-27 18:41:43 +0100
committerJ0WI <J0WI@users.noreply.github.com>2021-03-27 18:42:58 +0100
commit5f468c0248b6a36bcbf20953a4223168617c6926 (patch)
treebc0fcfc2d2d51a781a424da282598e51f4c3150c /lib/private/Log
parentaec9c8437a3de5d69451ae303ac5334b412f76d8 (diff)
downloadnextcloud-server-5f468c0248b6a36bcbf20953a4223168617c6926.tar.gz
nextcloud-server-5f468c0248b6a36bcbf20953a4223168617c6926.zip
Cleaner removePassword regex
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
Diffstat (limited to 'lib/private/Log')
-rw-r--r--lib/private/Log/ErrorHandler.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/ErrorHandler.php b/lib/private/Log/ErrorHandler.php
index 3f4c9ee64b1..5c84c61e744 100644
--- a/lib/private/Log/ErrorHandler.php
+++ b/lib/private/Log/ErrorHandler.php
@@ -39,7 +39,7 @@ class ErrorHandler {
* @return string
*/
protected static function removePassword($msg) {
- return preg_replace('/\/\/(.*):(.*)@/', '//xxx:xxx@', $msg);
+ return preg_replace('#//(.*):(.*)@#', '//xxx:xxx@', $msg);
}
public static function register($debug = false) {