1 drupal.inc drupal_valid_http_host($host)

Validates that a hostname (for example $_SERVER['HTTP_HOST']) is safe.

Deprecated

since 1.0.0

See also

backdrop_valid_http_host()

Related topics

File

core/includes/drupal.inc, line 96
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_valid_http_host($host) {
  return backdrop_valid_http_host($host);
}