From a424ebbc28549c0e06b9a8ca4985bf799179c404 Mon Sep 17 00:00:00 2001 From: Alexander Tkachev Date: Fri, 8 Jul 2016 16:38:26 +0600 Subject: CLOUD: Fix quotes encoding --- backends/networking/sdl_net/handlers/filespagehandler.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backends/networking/sdl_net/handlers') diff --git a/backends/networking/sdl_net/handlers/filespagehandler.cpp b/backends/networking/sdl_net/handlers/filespagehandler.cpp index 228bf7657b..4b18ac3247 100644 --- a/backends/networking/sdl_net/handlers/filespagehandler.cpp +++ b/backends/networking/sdl_net/handlers/filespagehandler.cpp @@ -40,6 +40,8 @@ Common::String encodeDoubleQuotes(Common::String s) { for (uint32 i = 0; i < s.size(); ++i) if (s[i] == '"') { result += "\\\""; + } else if (s[i] == '\\') { + result += "\\\\"; } else result += s[i]; return result; } -- cgit v1.2.3