Skip to content

Commit 556a020

Browse files
Merge pull request #64 from daniellienert/bugfix/fix-character-escaping
BUGFIX: Remove special characters completely
2 parents e435755 + 3549798 commit 556a020

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Utility/SearchTerm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ class SearchTerm
1717
{
1818
public static function sanitize(string $input): string
1919
{
20-
return str_replace(['=', '>', '<', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', '\\', '/'], ['', '', '', '(', '\)', '\{', '\}', '\[', '\]', '\^', '\"', '\~', '\*', '\?', '\:', '\\\\', '\/'], $input);
20+
return str_replace(['\\', '=', '>', '<', '(', ')', '{', '}', '[', ']', '^', '"', '~', '*', '?', ':', '/'], '', $input);
2121
}
2222
}

0 commit comments

Comments
 (0)