server/search: escape backslashes in search
This commit is contained in:
parent
783171729f
commit
9b27e113b3
|
@ -6,8 +6,9 @@ from szurubooru.search import criteria
|
|||
|
||||
def wildcard_transformer(value):
|
||||
return (value
|
||||
.replace('%', r'\%')
|
||||
.replace('_', r'\_')
|
||||
.replace('\\', '\\\\')
|
||||
.replace('%', '\\%')
|
||||
.replace('_', '\\_')
|
||||
.replace('*', '%'))
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue