mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 06:58:42 +00:00
Fixed a parameter splitting bug that prevented help command from working and could have lead to rm disaster
This commit is contained in:
parent
2e647c6b41
commit
24d801d18a
1 changed files with 2 additions and 0 deletions
|
@ -166,6 +166,8 @@ class BaseCommand(object):
|
||||||
result = re.split(r"(?<!\\) ", text)
|
result = re.split(r"(?<!\\) ", text)
|
||||||
for i, s in enumerate(result):
|
for i, s in enumerate(result):
|
||||||
result[i] = s.replace(r'\ ', ' ')
|
result[i] = s.replace(r'\ ', ' ')
|
||||||
|
if result == ['']:
|
||||||
|
result = []
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def create_parser(self):
|
def create_parser(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue