mirror of
https://github.com/ceph/ceph
synced 2025-01-19 01:21:49 +00:00
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:
parent
72bbaeac03
commit
a6d7629c17
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user