mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-27 04:57:39 +08:00
设置中的脱敏关键字"id"太苛刻
This commit is contained in:
parent
d22a23028f
commit
6dd4cc32f9
@ -131,7 +131,7 @@ class Setting extends Service
|
|||||||
* demo分支过滤敏感数据,100001帐号除外
|
* demo分支过滤敏感数据,100001帐号除外
|
||||||
*/
|
*/
|
||||||
if ($items->count() > 0) {
|
if ($items->count() > 0) {
|
||||||
$pattern = '/(id|auth|key|secret|token|password|pwd|mobile|phone|mail|email)/';
|
$pattern = '/(app|auth|key|secret|token|password|pwd|mobile|phone|mail|email)/';
|
||||||
$controllerName = $this->dispatcher->getControllerName();
|
$controllerName = $this->dispatcher->getControllerName();
|
||||||
foreach ($items as $item) {
|
foreach ($items as $item) {
|
||||||
$case1 = preg_match($pattern, $item->item_key);
|
$case1 = preg_match($pattern, $item->item_key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user