diff options
author | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-22 12:16:57 +0200 |
---|---|---|
committer | faketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-08-22 12:16:57 +0200 |
commit | 492cbe87eeef6668f1d4bea3e31e66a6d7988691 (patch) | |
tree | e1fa83a1b988980c0c6291766bc028a0060a0bdb /WebServer/UrlHelper.cpp | |
parent | Web chat for the WebAdmin :D (diff) | |
download | cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar.gz cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar.bz2 cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar.lz cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar.xz cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.tar.zst cuberite-492cbe87eeef6668f1d4bea3e31e66a6d7988691.zip |
Diffstat (limited to 'WebServer/UrlHelper.cpp')
-rw-r--r-- | WebServer/UrlHelper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebServer/UrlHelper.cpp b/WebServer/UrlHelper.cpp index e0a67687b..3ed5660b0 100644 --- a/WebServer/UrlHelper.cpp +++ b/WebServer/UrlHelper.cpp @@ -111,6 +111,10 @@ void SplitGetReq(std::string get_req, std::string& path, std::map<std::string, s val.replace(pos_plus, 1, " "); } + while ( (pos_plus = val.find("%20")) != std::string::npos ) { + val.replace(pos_plus, 3, " "); + } + // Replacing %xy notation std::string::size_type pos_hex = 0; while ( (pos_hex = val.find("%", pos_hex)) != std::string::npos ) { |