function check_url


Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/
cis7 check_url($uri)
cle7 check_url($uri)
elmsmedia7 check_url($uri)
icor7 check_url($uri)
meedjum_blog7 check_url($uri)
mooc7 check_url($uri)

Strips dangerous protocols from a URI and encodes it for output to HTML.


$uri: A plain-text URI that might contain dangerous protocols.

Return value

A URI stripped of dangerous protocols and encoded for output to an HTML attribute value. Because it is already encoded, it should not be set as a value within a $attributes array passed to drupal_attributes(), because drupal_attributes() expects those values to be plain-text strings. To pass a filtered URI to drupal_attributes(), call drupal_strip_dangerous_protocols() instead.

See also


Related topics

26 calls to check_url()
adaptivetheme_preprocess_page in sites/all/themes/ulmus/adaptivetheme/at_core/inc/
Preprocess variables for page.tpl.php
bakery_form_alter in sites/all/modules/ulmus/bakery/bakery.module
Implements hook_form_alter().
comment_tokens in modules/comment/
Implements hook_tokens().
feeds_views_handler_field_source::render in sites/all/modules/ulmus/feeds/views/
Override parent::render().
format_rss_channel in includes/
Formats an RSS channel.

... See full list


includes/, line 1387
Common functions that many Drupal modules will need to reference.


function check_url($uri) {
  return check_plain(drupal_strip_dangerous_protocols($uri));



Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/ in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/
The website encountered an unexpected error. Please try again later.