mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-06 17:35:19 +00:00
Fixed escaping of \u in Elasticsearch Query String queries
This commit is contained in:
parent
15a6c5efb5
commit
e411039b56
@ -86,7 +86,6 @@ async def check_queries():
|
||||
try:
|
||||
detail_result = await esa.search(index=index, q=query)
|
||||
except Exception as e:
|
||||
#error = e.info['error']['root_cause']
|
||||
error = e.info
|
||||
|
||||
failed.append((rule, query, error))
|
||||
|
@ -304,7 +304,7 @@ class ElasticsearchQuerystringBackend(SingleTextQueryBackend):
|
||||
identifier = "es-qs"
|
||||
active = True
|
||||
|
||||
reEscape = re.compile("([+\\-=!(){}\\[\\]^\"~:/]|\\\\(!>[*?])|&&|\\|\\|)")
|
||||
reEscape = re.compile("([+\\-=!(){}\\[\\]^\"~:/]|\\\\(!>[*?])|\\\\u|&&|\\|\\|)")
|
||||
reClear = re.compile("[<>]")
|
||||
andToken = " AND "
|
||||
orToken = " OR "
|
||||
|
Loading…
Reference in New Issue
Block a user