mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
Merge pull request #12874 from Jing-Scott/dev/swift-ref
rgw: the swift container acl should support field .ref Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
This commit is contained in:
commit
b8e7a276f6
@ -59,6 +59,7 @@ static bool uid_is_public(const string& uid)
|
||||
return false;
|
||||
|
||||
return sub.compare(".r") == 0 ||
|
||||
sub.compare(".ref") == 0 ||
|
||||
sub.compare(".referer") == 0 ||
|
||||
sub.compare(".referrer") == 0;
|
||||
}
|
||||
@ -75,6 +76,7 @@ static bool extract_referer_urlspec(const std::string& uid,
|
||||
url_spec = uid.substr(pos + 1);
|
||||
|
||||
return sub.compare(".r") == 0 ||
|
||||
sub.compare(".ref") == 0 ||
|
||||
sub.compare(".referer") == 0 ||
|
||||
sub.compare(".referrer") == 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user