mirror of
https://github.com/9001/copyparty.git
synced 2025-08-19 01:42:20 -06:00
support raw-queries with quotes
This commit is contained in:
parent
17ddd96cc6
commit
0278bf328f
|
@ -117,7 +117,17 @@ class U2idx(object):
|
||||||
if ok:
|
if ok:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if uq.startswith('"'):
|
||||||
|
v, uq = uq[1:].split('"', 1)
|
||||||
|
while v.endswith("\\"):
|
||||||
|
v2, uq = uq.split('"', 1)
|
||||||
|
v = v[:-1] + '"' + v2
|
||||||
|
v2, uq = (uq + " ").split(" ", 1)
|
||||||
|
v += v2
|
||||||
|
else:
|
||||||
v, uq = (uq + " ").split(" ", 1)
|
v, uq = (uq + " ").split(" ", 1)
|
||||||
|
v = v.replace('\\"', '"')
|
||||||
|
|
||||||
if is_key:
|
if is_key:
|
||||||
is_key = False
|
is_key = False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue