]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: replace '+' with "%20" in canonical query string for s3 35551/head
authoryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Wed, 22 Jul 2020 02:05:17 +0000 (10:05 +0800)
committeryuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
Wed, 22 Jul 2020 02:05:17 +0000 (10:05 +0800)
 v4 auth.

fix https://tracker.ceph.com/issues/45983

Signed-off-by: yuliyang_yewu <yuliyang_yewu@cmss.chinamobile.com>
src/rgw/rgw_auth_s3.cc

index 0eefc19f98875f253913a6b8d021570659b7dc6f..b7a1126a9e563612f82cceaa471d54e1b0532863 100644 (file)
@@ -498,7 +498,7 @@ std::string get_v4_canonical_qs(const req_info& info, const bool using_qs)
   }
   if (params->find_first_of('+') != std::string::npos) {
     copy_params = *params;
-    boost::replace_all(copy_params, "+", " ");
+    boost::replace_all(copy_params, "+", "%20");
     params = &copy_params;
   }