original_string: protected function isUrlExternal($url_uri_query_fragment)
      {
          if (mb_strpos($url_uri_query_fragment, '//') === false) {
              return false; // Relative.
          }
          return mb_stripos($url_uri_query_fragment, '//'.$this->currentUrlHost()) === false;
      }
code: protected function isUrlExternal($url_uri_query_fragment)
      {
          if (mb_strpos($url_uri_query_fragment, '//') === false) {
              return false; // Relative.
          }
          return mb_stripos($url_uri_query_fragment, '//'.$this->currentUrlHost()) === false;
      }
code_tokens: protected function isUrlExternal ( $ url_uri_query_fragment ) { if ( mb_strpos ( $ url_uri_query_fragment , '//' ) === false ) { return false ; // Relative. } return mb_stripos ( $ url_uri_query_fragment , '//' . $ this -> currentUrlHost ( ) ) === false ; }
docstring: Checks if a given URL is local or external to the current host.
  
  @since 140417 Initial release.
  
  @note Care should be taken when calling upon this method. We need to be 100% sure
  we are NOT calling this against a nested remote/relative URL, URI, query or fragment.
  This method assumes the URL being analyzed is from the HTML source code.
  
  @param string $url_uri_query_fragment A full URL; or a partial URI;
  or only a query string, or only a fragment. Any of these can be checked here.
  
  @return bool TRUE if external; else FALSE.
docstring_tokens: Checks if a given URL is local or external to the current host .