Fixup 40b4328e44
This had accidentally revered the logic and encoded characters that did not need to be encoded.
This commit is contained in:
parent
ffbaa84a4b
commit
4d616fd0f9
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue