Same name and namespace in other branches
  1. 4.6.x includes/common.inc \check_url()
  2. 5.x includes/common.inc \check_url()
  3. 6.x includes/common.inc \check_url()
  4. 7.x includes/common.inc \check_url()
  5. 8.9.x core/includes/common.inc \check_url()

Prepare a URL for use in an HTML attribute. Strips harmful protocols.

Related topics

19 calls to check_url()
aggregator_page_opml in modules/aggregator.module
Menu callback; generates an OPML representation of all feeds.
blog_form in modules/blog.module
Implementation of hook_form().
chameleon_page in themes/chameleon/chameleon.theme
drupal_add_js in includes/common.inc
Add a JavaScript file to the output.
drupal_client_ping in modules/drupal.module
Callback function from drupal_xmlrpc() called when another site pings this one.

... See full list

File

includes/common.inc, line 715
Common functions that many Drupal modules will need to reference.

Code

function check_url($uri) {
  return filter_xss_bad_protocol($uri, FALSE);
}