mpd: Stop string escaping all input as we have a proper tokenizer
This commit is contained in:
parent
a2ae51ff65
commit
047ed40ccc
@ -182,6 +182,8 @@ class MpdDispatcher(object):
|
||||
raise
|
||||
except LookupError:
|
||||
pass # Command has not been converted, i.e. fallback...
|
||||
|
||||
request = request.decode('string_escape')
|
||||
(command_name, handler, kwargs) = self._find_handler(request)
|
||||
try:
|
||||
return handler(self.context, **kwargs)
|
||||
|
||||
@ -45,7 +45,7 @@ class MpdSession(network.LineProtocol):
|
||||
|
||||
def decode(self, line):
|
||||
try:
|
||||
return super(MpdSession, self).decode(line.decode('string_escape'))
|
||||
return super(MpdSession, self).decode(line)
|
||||
except ValueError:
|
||||
logger.warning(
|
||||
'Stopping actor due to unescaping error, data '
|
||||
|
||||
Loading…
Reference in New Issue
Block a user