Skip to content

Commit

Permalink
fix: trim forum banned terms to ensure cross system compatibility (#3491
Browse files Browse the repository at this point in the history
)
  • Loading branch information
samerton committed Mar 9, 2024
1 parent d8d2ad5 commit 34d17a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/classes/Core/Validate.php
Expand Up @@ -375,7 +375,7 @@ public static function check(array $source, array $items = []): Validate
}

foreach ($rule_value as $term) {
if (strpos(strtolower($value), strtolower($term)) !== false) {
if (strpos(strtolower($value), strtolower(trim($term))) !== false) {
$validator->addError([
'field' => $item,
'rule' => self::NOT_CONTAIN,
Expand Down

0 comments on commit 34d17a0

Please sign in to comment.