This had accidentally revered the logic and encoded characters that did not need to be encoded.
This commit is contained in:
Charles Dang 2017-05-26 17:35:07 +11:00
parent ffbaa84a4b
commit 4d616fd0f9

View file

@ -443,7 +443,7 @@ std::string urlencode(const std::string &str)
res.fill('0');
for(char c : str) {
if(nonresv.count(c) == 0) {
if(nonresv.count(c) != 0) {
res << c;
continue;
}