[Web] Skip passwords in API log
This commit is contained in:
1 parent
0019502069
commit
7701660119
2 files changed
+7
-2
No files matched your search
@@ -25,6 +25,11 @@ function api_log($postarray) {
|
||||
}
|
||||
if ($value = json_decode($value, true)) {
|
||||
unset($value["csrf_token"]);
|
||||
foreach ($value as $key => &$val) {
|
||||
if(preg_match("/pass/i", $key)) {
|
||||
$val = '********';
|
||||
}
|
||||
}
|
||||
$value = json_encode($value);
|
||||
}
|
||||
$data_var[] = $data . "='" . $value . "'";
|
||||
|
||||
Reference in new issue
Block a user