summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 ) {