aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/sdl_net/handlers
diff options
context:
space:
mode:
authorAlexander Tkachev2016-07-08 16:38:26 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commita424ebbc28549c0e06b9a8ca4985bf799179c404 (patch)
treeacf835fc21905e484ad24357bb9c560514ebb8ef /backends/networking/sdl_net/handlers
parenteaa5fb175939c819785095d23bd67e3514144ec7 (diff)
downloadscummvm-rg350-a424ebbc28549c0e06b9a8ca4985bf799179c404.tar.gz
scummvm-rg350-a424ebbc28549c0e06b9a8ca4985bf799179c404.tar.bz2
scummvm-rg350-a424ebbc28549c0e06b9a8ca4985bf799179c404.zip
CLOUD: Fix quotes encoding
Diffstat (limited to 'backends/networking/sdl_net/handlers')
-rw-r--r--backends/networking/sdl_net/handlers/filespagehandler.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}