diff options
author | Alexander Tkachev | 2016-07-06 18:03:56 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | ab4361a76b40b56348ec46311121a0552f0c9d6b (patch) | |
tree | d0f73ba85786e94fd9bd6931052ef90d7294bafb /backends/networking/sdl_net/client.cpp | |
parent | 48e3fff6bcea94da5bd46ee2def17eb6bdca716c (diff) | |
download | scummvm-rg350-ab4361a76b40b56348ec46311121a0552f0c9d6b.tar.gz scummvm-rg350-ab4361a76b40b56348ec46311121a0552f0c9d6b.tar.bz2 scummvm-rg350-ab4361a76b40b56348ec46311121a0552f0c9d6b.zip |
CLOUD: Make "/create" work
One can now create directories through browser.
Diffstat (limited to 'backends/networking/sdl_net/client.cpp')
-rw-r--r-- | backends/networking/sdl_net/client.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/networking/sdl_net/client.cpp b/backends/networking/sdl_net/client.cpp index 67b45b6cbe..f567891dd8 100644 --- a/backends/networking/sdl_net/client.cpp +++ b/backends/networking/sdl_net/client.cpp @@ -23,6 +23,7 @@ #define FORBIDDEN_SYMBOL_ALLOW_ALL #include "backends/networking/sdl_net/client.h" +#include "backends/networking/sdl_net/localwebserver.h" #include "common/textconsole.h" #include <SDL/SDL_net.h> @@ -201,13 +202,13 @@ Common::String Client::queryParameter(Common::String name) const { } else key += _query[i]; } else { if (_query[i] == '&') { - if (key == name) return value; + if (key == name) return LocalWebserver::urlDecode(value); readingKey = true; key = ""; } else value += _query[i]; } } - if (key == name) return value; //the last key doesn't have an '&' in the end of the query + if (key == name) return LocalWebserver::urlDecode(value); //the last key doesn't have an '&' in the end of the query return ""; } |