check_url

Versions
4.6 – 7
check_url($uri)

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

Related topics

▾ 22 functions call check_url()

aggregator_page_opml in modules/aggregator.module
Menu callback; generates an OPML representation of all feeds.
blog_form in modules/blog.module
Implementation of hook_form().
drupal_directory_page in modules/drupal.module
Formats a list of all sites indexed in the directory.
drupal_directory_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().
form in includes/common.inc
Generate a form from a set of form elements.
format_name in includes/common.inc
Format a username.
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.
pager_link in includes/pager.inc
Format a link to a specific query result page.
profile_view_field in modules/profile.module
statistics_top_referrers in modules/statistics.module
Menu callback; presents the "Top referrers" page.
theme_aggregator_block_item in modules/aggregator.module
Format an individual feed item for display in the block.
theme_aggregator_feed in modules/aggregator.module
Format a news feed.
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_image in includes/theme.inc
Return a themed image.
theme_more_help_link in includes/theme.inc
theme_search_item in modules/search.module
Format a single result entry of a search query.
theme_xml_icon in includes/theme.inc
Return code that emits an XML icon.
upload_nodeapi in modules/upload.module
Implementation of hook_nodeapi().

Code

includes/common.inc, line 629

<?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.