瀏覽代碼

Securise email

stany.ferer 3 月之前
父節點
當前提交
609de97fa9
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      core/class/serverLog.class.php

+ 4 - 1
core/class/serverLog.class.php

@@ -34,8 +34,11 @@ class serverLog {
     }
 
     private static function hidePassword($input) {
-        return preg_replace("/('password'\s*=>\s*)'[^']*'/", "$1'####'", $input);
+        return preg_replace("/('password'\s*=>\s*)'[^']*'/", "$1'##PASSWORD##'", $input);
     }
 
+    private static function hideEmail($input) {
+        return preg_replace("/('email'\s*=>\s*)'[^']*'/", "$1'##EMAIL##'", $input);
+    }
 
 }