Merge pull request #1609 from cianmcgovern/graylog-fix

Escape spaces in graylog backend
This commit is contained in:
Florian Roth 2021-07-04 14:20:07 +02:00 committed by GitHub
commit 400fae4dba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,5 +23,5 @@ class GraylogQuerystringBackend(ElasticsearchQuerystringBackend):
active = True
config_required = False
reEscape = re.compile("([+\\-!(){}\\[\\]^\"~:/]|(?<!\\\\)\\\\(?![*?\\\\])|&&|\\|\\|)")
reEscape = re.compile("([\s+\\-!(){}\\[\\]^\"~:/]|(?<!\\\\)\\\\(?![*?\\\\])|&&|\\|\\|)")
listSeparator = " "