1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-26 12:23:06 +08:00

优化setting输出过滤

This commit is contained in:
xiaochong0302 2023-06-17 19:13:12 +08:00
parent bbe3002a54
commit d2bae94dc9

View File

@ -131,7 +131,7 @@ class Setting extends Service
* demo分支过滤敏感数据100001帐号除外
*/
if ($items->count() > 0) {
$pattern = '/(id|auth|key|secret|token|password|pwd|mobile|phone|mail|email|hook)$/';
$pattern = '/(auth|key|secret|token|password|pwd|mobile|phone|mail|hook)/';
$controllerName = $this->dispatcher->getControllerName();
foreach ($items as $item) {
$case1 = preg_match($pattern, $item->item_key);