You are here

function _forward_url_is_external in Forward 6

Email Tracker

2 calls to _forward_url_is_external()
forward_page in ./forward.module
Page
forward_tracker in ./forward.module

File

./forward.module, line 446

Code

function _forward_url_is_external($path) {
  $colonpos = strpos($path, ':');

  // Only call the slow drupal_strip_dangerous_protocols() if $path contains a
  // ':' before any / ? or #.
  return $colonpos !== FALSE && !preg_match('![/?#]!', substr($path, 0, $colonpos)) && _forward_strip_dangerous_protocols($path) == $path;
}