mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-07 01:45:21 +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:
|
try:
|
||||||
detail_result = await esa.search(index=index, q=query)
|
detail_result = await esa.search(index=index, q=query)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
#error = e.info['error']['root_cause']
|
|
||||||
error = e.info
|
error = e.info
|
||||||
|
|
||||||
failed.append((rule, query, error))
|
failed.append((rule, query, error))
|
||||||
|
@ -304,7 +304,7 @@ class ElasticsearchQuerystringBackend(SingleTextQueryBackend):
|
|||||||
identifier = "es-qs"
|
identifier = "es-qs"
|
||||||
active = True
|
active = True
|
||||||
|
|
||||||
reEscape = re.compile("([+\\-=!(){}\\[\\]^\"~:/]|\\\\(!>[*?])|&&|\\|\\|)")
|
reEscape = re.compile("([+\\-=!(){}\\[\\]^\"~:/]|\\\\(!>[*?])|\\\\u|&&|\\|\\|)")
|
||||||
reClear = re.compile("[<>]")
|
reClear = re.compile("[<>]")
|
||||||
andToken = " AND "
|
andToken = " AND "
|
||||||
orToken = " OR "
|
orToken = " OR "
|
||||||
|
Loading…
Reference in New Issue
Block a user