function domain_check_scheme in Domain Access 6.2
Same name and namespace in other branches
- 5 domain.module \domain_check_scheme()
- 7.3 domain.module \domain_check_scheme()
- 7.2 domain.module \domain_check_scheme()
Ensure that the scheme value has not been hacked.
Note that Domain Access only supports HTTP and HTTPS. Other protocols will be removed.
Parameters
$scheme: The request protocol for the requested domain.
Return value
Either 'http' or 'https'.
2 calls to domain_check_scheme()
- domain_get_path in ./
domain.module - Determine an absolute path for a domain
- domain_get_uri in ./
domain.module - Determine an absolute path to the current page
File
- ./
domain.module, line 1342 - Core module functions for the Domain Access suite.
Code
function domain_check_scheme($scheme) {
if ($scheme != 'https') {
$scheme = 'http';
}
return $scheme;
}