check_url

Definition

check_url($uri)
includes/common.inc, line 629

Description

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

Related topics

Namesort iconDescription
Input validationFunctions to validate user input.

Code

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

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.