mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-25 09:35:16 +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
@ -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…
x
Reference in New Issue
Block a user