check_url
includes/common.inc, line 966
- Versions
- 4.6 – 7
check_url($uri)
Prepare a URL for use in an HTML attribute. Strips harmful protocols.
Related topics
- Input validation
- Functions to validate user input.
▾ 24 functions call check_url()
- aggregator_page_opml in modules/aggregator/aggregator.module
- Menu callback; generates an OPML representation of all feeds.
- aggregator_page_rss in modules/aggregator/aggregator.module
- Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
- 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
- drupal_client_ping in modules/drupal/drupal.module
- Callback function from drupal_xmlrpc() called when another site pings this one.
- drupal_get_js in includes/common.inc
- Returns a themed presentation of all JavaScript code for the current page. References to JavaScript files are placed in a certain order: first, all 'core' files, then all 'module' and finally all 'theme' JavaScript...
- format_rss_channel in includes/common.inc
- Formats an RSS channel.
- format_rss_item in includes/common.inc
- Format a single RSS item.
- l in includes/common.inc
- Format an internal Drupal link.
- phptemplate_page in themes/engines/phptemplate/phptemplate.engine
- Prepare the values passed to the theme_page function to be passed into a pluggable template engine. Uses the arg() function to generate a series of page template files suggestions based on the current path. If none are found, the default page.tpl.php...
- profile_view_field in modules/profile/profile.module
- theme_aggregator_block_item in modules/aggregator/aggregator.module
- Format an individual feed item for display in the block.
- theme_aggregator_page_item in modules/aggregator/aggregator.module
- Format an individual feed item for display on the aggregator page.
- theme_aggregator_summary_item in modules/aggregator/aggregator.module
- Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
- theme_client_list in modules/drupal/drupal.module
- Theme a client list.
- theme_feed_icon in includes/theme.inc
- Return code that emits an feed icon.
- theme_form in includes/form.inc
- Format a form.
- theme_image in includes/theme.inc
- Return a themed image.
- theme_more_help_link in includes/theme.inc
- Returns code that emits the 'more help'-link.
- theme_search_item in modules/search/search.module
- Format a single result entry of a search query. This function is normally called by theme_search_page() or hook_search_page().
- theme_textfield in includes/form.inc
- Format a textfield.
- theme_xml_icon in includes/theme.inc
- Return code that emits an XML icon.
- _filter_url_parse_full_links in modules/filter/filter.module
- Make links out of absolute URLs.
Code
<?php
function check_url($uri) {
return filter_xss_bad_protocol($uri, FALSE);
}
?> 