]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: move url escaping to a common place
authorJosh Durgin <josh.durgin@inktank.com>
Thu, 24 Oct 2013 15:37:25 +0000 (08:37 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 1 Nov 2013 23:17:30 +0000 (16:17 -0700)
commit672679d26110dd93393bc18a681ae41175e4a299
treed6deb50ad6b5f64798af29a009ffff5dacafa0de
parent91997fca6ec6c06beecd63c3e2ae521319fca7c2
rgw: move url escaping to a common place

This is useful outside of the s3 interface. Rename url_escape()
url_encode() for consistency with the exsting common url_decode()
function. This is in preparation for the next commit, which needs
to escape url-unsafe characters in another place.

Backport: dumpling
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
(cherry picked from commit dd308cd481b368f90a64220847b91fc233d92a59)
src/rgw/rgw_common.cc
src/rgw/rgw_common.h
src/rgw/rgw_rest_s3.cc