fix typo and set @since properly

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2017-07-27 17:25:09 +02:00
parent ecf347bd1a
commit eb51c46549
2 changed files with 6 additions and 6 deletions

View File

@ -85,6 +85,6 @@ class ContentSecurityPolicy extends EmptyContentSecurityPolicy {
/** @var array Domains from which web-workers and nested browsing content can load elements */
protected $allowedChildSrcDomains = [];
/** @var array Domains which can embeed this Nextcloud instance */
/** @var array Domains which can embed this Nextcloud instance */
protected $allowedFrameAncestors = [];
}

View File

@ -68,7 +68,7 @@ class EmptyContentSecurityPolicy {
protected $allowedFontDomains = null;
/** @var array Domains from which web-workers and nested browsing content can load elements */
protected $allowedChildSrcDomains = null;
/** @var array Domains which can embeed this Nextcloud instance */
/** @var array Domains which can embed this Nextcloud instance */
protected $allowedFrameAncestors = null;
/**
@ -329,11 +329,11 @@ class EmptyContentSecurityPolicy {
}
/**
* Domains which can embeed an iFrame of the Nextcloud instance
* Domains which can embed an iFrame of the Nextcloud instance
*
* @param string $domain
* @return $this
* @since 12.x
* @since 13.0.0
*/
public function addAllowedFrameAncestorDomain($domain) {
$this->allowedFrameAncestors[] = $domain;
@ -341,11 +341,11 @@ class EmptyContentSecurityPolicy {
}
/**
* Domains which can embeed an iFrame of the Nextcloud instance
* Domains which can embed an iFrame of the Nextcloud instance
*
* @param string $domain
* @return $this
* @since 12.x
* @since 13.0.0
*/
public function disallowFrameAncestorDomain($domain) {
$this->allowedFrameAncestors = array_diff($this->allowedFrameAncestors, [$domain]);