Skip to content

Commit

Permalink
Merge pull request #13007 from Werkov/rgw-fix-tempurl-url-encoding-ma…
Browse files Browse the repository at this point in the history
…ster

rgw: Use decoded URI when verifying TempURL

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
  • Loading branch information
yehudasa committed Jan 26, 2017
2 parents 10a7ff0 + 4e1318f commit b6f1ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rgw/rgw_swift_auth.cc
Expand Up @@ -217,7 +217,7 @@ RGWAuthApplier::aplptr_t RGWTempURLAuthEngine::authenticate() const

/* XXX can we search this ONCE? */
const size_t pos = g_conf->rgw_swift_url_prefix.find_last_not_of('/') + 1;
boost::string_ref ref_uri = s->info.request_uri;
boost::string_ref ref_uri = s->decoded_uri;
const std::array<boost::string_ref, 2> allowed_paths = {
ref_uri,
ref_uri.substr(pos + 1)
Expand Down

0 comments on commit b6f1ba8

Please sign in to comment.