function check_url in Drupal 6
Same name and namespace in other branches
- 8 core/includes/common.inc \check_url()
- 4 includes/common.inc \check_url()
- 5 includes/common.inc \check_url()
- 7 includes/common.inc \check_url()
Prepare a URL for use in an HTML attribute. Strips harmful protocols.
27 calls to check_url()
- aggregator_refresh in modules/
aggregator/ aggregator.module - Checks a news feed for new items.
- blog_form in modules/
blog/ blog.module - Implementation of hook_form().
- chameleon_page in themes/
chameleon/ chameleon.theme - format_rss_channel in includes/
common.inc - Formats an RSS channel.
- format_rss_item in includes/
common.inc - Format a single RSS item.
File
- includes/
common.inc, line 1113 - Common functions that many Drupal modules will need to reference.
Code
function check_url($uri) {
return filter_xss_bad_protocol($uri, FALSE);
}