parent
e07146be7c
commit
46396cce1e
@ -270,6 +270,9 @@ class CommandRunner(QObject):
|
|||||||
maxsplit=maxsplit)
|
maxsplit=maxsplit)
|
||||||
for s in args:
|
for s in args:
|
||||||
# remove quotes and replace \" by "
|
# remove quotes and replace \" by "
|
||||||
|
if s == '""' or s == "''":
|
||||||
|
s = ''
|
||||||
|
else:
|
||||||
s = re.sub(r"""(^|[^\\])["']""", r'\1', s)
|
s = re.sub(r"""(^|[^\\])["']""", r'\1', s)
|
||||||
s = re.sub(r"""\\(["'])""", r'\1', s)
|
s = re.sub(r"""\\(["'])""", r'\1', s)
|
||||||
self._args.append(s)
|
self._args.append(s)
|
||||||
|
Loading…
Reference in New Issue
Block a user