Now the web server supports %20 spaces in URLs

git-svn-id: http://mc-server.googlecode.com/svn/trunk@774 0a769ca7-a7f5-676a-18bf-c427514a06d6
master
faketruth 2012-08-22 10:16:57 +00:00
parent b5c4994475
commit 492cbe87ee
1 changed files with 4 additions and 0 deletions

View File

@ -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 ) {