mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-23 05:48:26 +00:00
Changed url encoding of space character to use %20 instead of the plus (+) sign.
This commit is contained in:
parent
d121bab3e5
commit
d5626fe595
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user