Changed url encoding of space character to use %20 instead of the plus (+) sign.

This commit is contained in:
root 2013-12-17 15:12:03 +01:00
parent d121bab3e5
commit d5626fe595

View File

@ -130,7 +130,9 @@ string urlEncode(const string &s)
} else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') {
result += s[i];
} else if (s[i] == ' ') {
result += '+';
result += '%';
result += '2';
result += '0';
} else {
result += "%";
result += hexAlphabet[static_cast<unsigned char>(s[i]) / 16];