TrustedDomainHelper¶
-
class
OC\Security\
TrustedDomainHelper
¶ - Class TrustedDomain
Source: lib/private/Security/TrustedDomainHelper.php#41
Properties¶
Methods¶
-
public
OC\Security\TrustedDomainHelper::
__construct
($config)¶ Source: Parameters: - $config (
OCP\IConfig
)
- $config (
-
public
OC\Security\TrustedDomainHelper::
isTrustedDomain
($domainWithPort)¶ - Checks whether a domain is considered as trusted from the listof trusted domains. If no trusted domains have been configured, returnstrue.This is used to prevent Host Header Poisoning.
Source: Parameters: - $domainWithPort (string)
Returns: bool true if the given domain is trusted or if no trusted domains have been configured