check_url

Versions
4.6 – 7
check_url($uri)

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

Related topics

▾ 25 functions call check_url()

aggregator_page_opml in modules/aggregator.module
Menu callback; generates an OPML representation of all feeds.
aggregator_page_rss in modules/aggregator.module
Menu callback; generate an RSS 0.92 feed of aggregator items or categories.
aggregator_refresh in modules/aggregator.module
Checks a news feed for new items.
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.
filter_help in modules/filter.module
Implementation of hook_help().
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.
profile_view_field in modules/profile.module
theme_aggregator_block_item in modules/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_page_item in modules/aggregator.module
Format an individual feed item for display on the aggregator page.
theme_aggregator_summary_item in modules/aggregator.module
Return a themed item heading for summary pages located at "aggregator/sources" and "aggregator/categories".
theme_client_list in modules/drupal.module
Theme a client list.
theme_comment_post_forbidden in modules/comment.module
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.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.

Code

includes/common.inc, line 715

<?php
function check_url($uri) {
  return filter_xss_bad_protocol($uri, FALSE);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.