remove duplicated null replacements

This commit is contained in:
Daniel Seifert 2025-01-07 10:18:54 +01:00
parent fa151ad116
commit 5ac8672b88

View File

@ -53,11 +53,11 @@ class sensitiveMessageFormatter extends MessageFormatter
array_map(
function ($search) use (&$replacements) {
$replacements[$search] = str_repeat(
$this->replaceChar ?? '*',
$this->replaceChar,
$this->fixedReplacementLength ?? strlen($search)
);
$replacements[urlencode($search)] = str_repeat(
$this->replaceChar ?? '*',
$this->replaceChar,
$this->fixedReplacementLength ?? strlen($search)
);
},