Escape search value
This commit is contained in:
parent
894b51ee23
commit
01c227f652
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@
|
||||||
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
if ('operator' in json_query && json_query.operator.startsWith("not_")){
|
||||||
string_query += "NOT ";
|
string_query += "NOT ";
|
||||||
}
|
}
|
||||||
string_query += json_query.field + ":\'" + json_query.value.toString().replace(/['"]+/g, '') + "\'";
|
string_query += json_query.field + ":\'" + escape(json_query.value.toString().replace(/['"]+/g, '')) + "\'";
|
||||||
}
|
}
|
||||||
return string_query;
|
return string_query;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue