]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: swift: The http referer should be parsed to compare in swift API 13780/head
authorJing Wenjun <jingwenjun@cmss.chinamobile.com>
Thu, 19 Jan 2017 13:26:17 +0000 (21:26 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 3 Mar 2017 14:15:36 +0000 (15:15 +0100)
commitc8d70ee0129ce2cc459a2be386531aeee5c6c422
treeecabb8e121ea10e356156d1cd252be76cca77e84
parent7e16ea218d38703f1903dca002905f040a821590
rgw: swift: The http referer should be parsed to compare in swift API
The http referer should be parsed to compare with the url set on the container read acl. If we set .r:www.example.com on container read acl, we should parse the hostname 'www.example.com' of the http referer like 'http://www.example.com' from the http request.

Fixes: http://tracker.ceph.com/issues/18685
Signed-off-by: Jing Wenjun <jingwenjun@cmss.chinamobile.com>
(cherry picked from commit 941dfad67174ae3ec517e76bf4028c50fb46fe82)
src/rgw/rgw_acl.h