diff --git a/src/string_util.cpp b/src/string_util.cpp index 15385c6..df4b59d 100644 --- a/src/string_util.cpp +++ b/src/string_util.cpp @@ -125,10 +125,6 @@ string urlEncode(const string &s) for (unsigned i = 0; i < s.length(); ++i) { if (s[i] == '/') { // Note- special case for fuse paths... result += s[i]; - }else if (s[i] == '=') { // Note- special case for s3... - result += s[i]; - }else if (s[i] == '&') { // Note- special case for s3... - result += s[i]; } else if (isalnum(s[i])) { result += s[i]; } else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') { @@ -159,6 +155,8 @@ string urlEncode2(const string &s) result += s[i]; }else if (s[i] == '&') { // Note- special case for s3... result += s[i]; + }else if(s[i] == '%'){ + result += s[i]; } else if (isalnum(s[i])) { result += s[i]; } else if (s[i] == '.' || s[i] == '-' || s[i] == '*' || s[i] == '_') {