Encode space and plus characters

This commit is contained in:
Geraldo Intmain 2018-10-29 20:46:11 -03:00
parent 49c82c9c50
commit c4f9062552

View file

@ -934,7 +934,8 @@ inline std::string encode_url(const std::string& s)
for (auto i = 0; s[i]; i++) {
switch (s[i]) {
case ' ': result += "+"; break;
case ' ': result += "%20"; break;
case '+': result += "%2B"; break;
case '\'': result += "%27"; break;
case ',': result += "%2C"; break;
case ':': result += "%3A"; break;