Same name and namespace in other branches
- 4.6.x includes/common.inc \check_url()
- 4.7.x includes/common.inc \check_url()
- 6.x includes/common.inc \check_url()
- 7.x includes/common.inc \check_url()
- 8.9.x core/includes/common.inc \check_url()
Prepare a URL for use in an HTML attribute. Strips harmful protocols.
Related topics
21 calls to check_url()
- aggregator_page_opml in modules/
aggregator/ aggregator.module - Menu callback; generates an OPML representation of all feeds.
- blog_form in modules/
blog/ blog.module - Implementation of hook_form().
- chameleon_page in themes/
chameleon/ chameleon.theme - drupal_client_ping in modules/
drupal/ drupal.module - Callback function from drupal_xmlrpc() called when another site pings this one.
- format_rss_channel in includes/
common.inc - Formats an RSS channel.
File
- includes/
common.inc, line 990 - Common functions that many Drupal modules will need to reference.
Code
function check_url($uri) {
return filter_xss_bad_protocol($uri, FALSE);
}