From 8354c50911c440b42ca555b36000c18ec1d5450c Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Mon, 3 Sep 2018 16:54:33 +0200 Subject: Deprecate the childSrc functions Signed-off-by: Roeland Jago Douma --- lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/public/AppFramework') diff --git a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php index 6784f5723bf..ddc7918d094 100644 --- a/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php +++ b/lib/public/AppFramework/Http/EmptyContentSecurityPolicy.php @@ -315,6 +315,7 @@ class EmptyContentSecurityPolicy { * @param string $domain Domain to whitelist. Any passed value needs to be properly sanitized. * @return $this * @since 8.1.0 + * @deprecated 15.0.0 use addAllowedWorkerSrcDomains or addAllowedFrameDomain */ public function addAllowedChildSrcDomain($domain) { $this->allowedChildSrcDomains[] = $domain; @@ -327,6 +328,7 @@ class EmptyContentSecurityPolicy { * @param string $domain * @return $this * @since 8.1.0 + * @deprecated 15.0.0 use the WorkerSrcDomains or FrameDomain */ public function disallowChildSrcDomain($domain) { $this->allowedChildSrcDomains = array_diff($this->allowedChildSrcDomains, [$domain]); -- cgit v1.2.3