mask protocol arguments
This commit is contained in:
parent
fab644fd47
commit
394ebb2693
1 changed files with 1 additions and 1 deletions
2
mcg.py
2
mcg.py
|
@ -513,7 +513,7 @@ class Client(Base):
|
|||
|
||||
def _write(self, command, args=None):
|
||||
if args is not None and len(args) > 0:
|
||||
line = '{} "{}"\n'.format(command, '" "'.join(str(x) for x in args))
|
||||
line = '{} "{}"\n'.format(command, '" "'.join(str(x).replace('"', '\\\"') for x in args))
|
||||
else:
|
||||
line = '{}\n'.format(command)
|
||||
self._logger.debug("write: %r", line)
|
||||
|
|
Loading…
Reference in a new issue