]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/rest: RESTArgs::get_string() url-decodes query params
authorCasey Bodley <cbodley@redhat.com>
Fri, 20 Feb 2026 16:52:58 +0000 (11:52 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 5 May 2026 16:25:46 +0000 (12:25 -0400)
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit fdc44e586264dca9d477a2c224d29ac9724cdc3d)
Fixes: https://tracker.ceph.com/issues/75225
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
src/rgw/rgw_rest.cc

index a5bf94fedc8a37d5233d529755f93f1a81576fa8..5d92c44f611f04afa55adc02320a2b0391d83e70 100644 (file)
@@ -870,6 +870,8 @@ int RESTArgs::get_string(req_state *s, const string& name,
     return 0;
   }
 
+  constexpr bool in_query = true; // url-decode query params
+  *val = url_decode(*val, in_query);
   return 0;
 }