summaryrefslogtreecommitdiffstats
path: root/WebServer
diff options
context:
space:
mode:
authorfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 12:16:57 +0200
committerfaketruth <faketruth@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-22 12:16:57 +0200
commit492cbe87eeef6668f1d4bea3e31e66a6d7988691 (patch)
treee1fa83a1b988980c0c6291766bc028a0060a0bdb /WebServer
parentWeb chat for the WebAdmin :D (diff)
downloadcuberite-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')
-rw-r--r--WebServer/UrlHelper.cpp4
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 ) {