mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-20 11:35:49 +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)
|
||||
for i, s in enumerate(result):
|
||||
result[i] = s.replace(r'\ ', ' ')
|
||||
if result == ['']:
|
||||
result = []
|
||||
return result
|
||||
|
||||
def create_parser(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue