diff --git a/server/szurubooru/search/configs/util.py b/server/szurubooru/search/configs/util.py index 451179b..7cb36e9 100644 --- a/server/szurubooru/search/configs/util.py +++ b/server/szurubooru/search/configs/util.py @@ -6,8 +6,9 @@ from szurubooru.search import criteria def wildcard_transformer(value): return (value - .replace('%', r'\%') - .replace('_', r'\_') + .replace('\\', '\\\\') + .replace('%', '\\%') + .replace('_', '\\_') .replace('*', '%'))