Now the web server supports %20 spaces in URLs
git-svn-id: http://mc-server.googlecode.com/svn/trunk@774 0a769ca7-a7f5-676a-18bf-c427514a06d6master
parent
b5c4994475
commit
492cbe87ee
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in New Issue