mpd: Stop string escaping all input as we have a proper tokenizer

This commit is contained in:
Thomas Adamcik 2014-01-23 22:28:37 +01:00
parent a2ae51ff65
commit 047ed40ccc
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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 '