You are here

function domain_check_scheme in Domain Access 7.3

Same name and namespace in other branches
  1. 5 domain.module \domain_check_scheme()
  2. 6.2 domain.module \domain_check_scheme()
  3. 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 1693
Core module functions for the Domain Access suite.

Code

function domain_check_scheme($scheme) {
  if ($scheme != 'https') {
    $scheme = 'http';
  }
  return $scheme;
}