rgw: don't treat plus as a space in url decode

Any special character encoding should be done through %hex. The
plus sign is a valid character in object names, and in user id
(when used in signed urls).

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
This commit is contained in:
Yehuda Sadeh 2012-02-08 17:08:39 -08:00
parent 72bbaeac03
commit a6d7629c17

View File

@ -386,12 +386,7 @@ bool url_decode(string& src_str, string& dest_str)
while (*src) {
if (*src != '%') {
if (*src != '+') {
dest[pos++] = *src++;
} else {
dest[pos++] = ' ';
++src;
}
dest[pos++] = *src++;
} else {
src++;
if (!*src)