menu_path_is_external
- Versions
- 6
menu_path_is_external($path)
Returns TRUE if a path is external (e.g. http://example.com).
Related topics
Code
includes/menu.inc, line 2455
<?php
function menu_path_is_external($path) {
$colonpos = strpos($path, ':');
return $colonpos !== FALSE && !preg_match('![/?#]!', substr($path, 0, $colonpos)) && filter_xss_bad_protocol($path, FALSE) == check_plain($path);
}
?>Login or register to post comments 