mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-23 09:18:55 +00:00
Merge pull request #1 from dejaeghd/master
Using %20 instead of the plus (+) sign for encoding spaces
This commit is contained in:
commit
d9f13dbdcb
@ -130,7 +130,9 @@ string urlEncode(const string &s)
|
|||||||
} else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') {
|
} else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') {
|
||||||
result += s[i];
|
result += s[i];
|
||||||
} else if (s[i] == ' ') {
|
} else if (s[i] == ' ') {
|
||||||
result += '+';
|
result += '%';
|
||||||
|
result += '2';
|
||||||
|
result += '0';
|
||||||
} else {
|
} else {
|
||||||
result += "%";
|
result += "%";
|
||||||
result += hexAlphabet[static_cast<unsigned char>(s[i]) / 16];
|
result += hexAlphabet[static_cast<unsigned char>(s[i]) / 16];
|
||||||
|
Loading…
Reference in New Issue
Block a user