TrustedDomainHelper

class OC\Security\TrustedDomainHelper
Class TrustedDomain
Source:lib/private/Security/TrustedDomainHelper.php#41

Properties

Methods

public OC\Security\TrustedDomainHelper::__construct($config)
Source:

lib/private/Security/TrustedDomainHelper.php#48

Parameters:
public OC\Security\TrustedDomainHelper::isTrustedDomain($domainWithPort)
Checks whether a domain is considered as trusted from the list
of trusted domains. If no trusted domains have been configured, returns
true.
This is used to prevent Host Header Poisoning.
Source:

lib/private/Security/TrustedDomainHelper.php#77

Parameters:
  • $domainWithPort (string)
Returns:

bool true if the given domain is trusted or if no trusted domains have been configured