diff options
author | Alexander Tkachev | 2016-07-07 15:01:07 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 4d88f51de9583d9fcdebe8fc5e90fed61416fe96 (patch) | |
tree | de0cec7ad28cb587faf784a4b4bbe478b38492a8 /backends/networking/sdl_net/localwebserver.h | |
parent | 89a1a549822dee5b18d799cd9b8e5a58190aa49d (diff) | |
download | scummvm-rg350-4d88f51de9583d9fcdebe8fc5e90fed61416fe96.tar.gz scummvm-rg350-4d88f51de9583d9fcdebe8fc5e90fed61416fe96.tar.bz2 scummvm-rg350-4d88f51de9583d9fcdebe8fc5e90fed61416fe96.zip |
CLOUD: Add query parameters URL encoding
In local webserver's links.
Fixed URL decoding to understand '+', by the way. Firefox sends these
instead of spaces and "%2B" instead of '+'.
Diffstat (limited to 'backends/networking/sdl_net/localwebserver.h')
-rw-r--r-- | backends/networking/sdl_net/localwebserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backends/networking/sdl_net/localwebserver.h b/backends/networking/sdl_net/localwebserver.h index 97fe2aa37b..24a4ecf6c3 100644 --- a/backends/networking/sdl_net/localwebserver.h +++ b/backends/networking/sdl_net/localwebserver.h @@ -94,6 +94,7 @@ public: static void setClientRedirectHandler(Client &client, Common::SeekableReadStream *responseStream, Common::String location, const char *mimeType = nullptr); static const char *determineMimeType(Common::String &filename); static Common::String urlDecode(Common::String value); + static Common::String urlEncodeQueryParameterValue(Common::String value); }; /** Shortcut for accessing the local webserver. */ |