]> 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 13005/head
authorJing Wenjun <jingwenjun@cmss.chinamobile.com>
Thu, 19 Jan 2017 13:26:17 +0000 (21:26 +0800)
committerJing Wenjun <jingwenjun@cmss.chinamobile.com>
Thu, 26 Jan 2017 05:04:59 +0000 (13:04 +0800)
commit941dfad67174ae3ec517e76bf4028c50fb46fe82
tree62cefd6a08ff933d3ea534272407f011d273ea0e
parent3c0561cb0aca747f9465e3ce90049ebb4d3a8927
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>
src/rgw/rgw_acl.h