check_url

Versions
5 – 7
check_url($uri)

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

Related topics

▾ 24 functions call check_url()

aggregator_page_opml in drupal/modules/aggregator/aggregator.module
Menu callback; generates an OPML representation of all feeds.
aggregator_page_rss in drupal/modules/aggregator/aggregator.module
Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
aggregator_refresh in drupal/modules/aggregator/aggregator.module
Checks a news feed for new items.
blog_form in drupal/modules/blog/blog.module
Implementation of hook_form().
chameleon_page in drupal/themes/chameleon/chameleon.theme
drupal_client_ping in drupal/modules/drupal/drupal.module
Callback function from drupal_xmlrpc() called when another site pings this one.
drupal_get_js in drupal/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 drupal/includes/common.inc
Formats an RSS channel.
format_rss_item in drupal/includes/common.inc
Format a single RSS item.
l in drupal/includes/common.inc
Format an internal Drupal link.
phptemplate_page in drupal/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 drupal/modules/profile/profile.module
theme_aggregator_block_item in drupal/modules/aggregator/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_page_item in drupal/modules/aggregator/aggregator.module
Format an individual feed item for display on the aggregator page.
theme_aggregator_summary_item in drupal/modules/aggregator/aggregator.module
Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_client_list in drupal/modules/drupal/drupal.module
Theme a client list.
theme_feed_icon in drupal/includes/theme.inc
Return code that emits an feed icon.
theme_form in drupal/includes/form.inc
Format a form.
theme_image in drupal/includes/theme.inc
Return a themed image.
theme_more_help_link in drupal/includes/theme.inc
Returns code that emits the 'more help'-link.
theme_search_item in drupal/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 drupal/includes/form.inc
Format a textfield.
theme_xml_icon in drupal/includes/theme.inc
Return code that emits an XML icon.
_filter_url_parse_full_links in drupal/modules/filter/filter.module
Make links out of absolute URLs.

Code

drupal/includes/common.inc, line 990

<?php
function check_url($uri) {
  return filter_xss_bad_protocol($uri, FALSE);
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.