original_string: public function isLocal($config, $context)
      {
          if ($this->host === null) {
              return true;
          }
          $uri_def = $config->getDefinition('URI');
          if ($uri_def->host === $this->host) {
              return true;
          }
          return false;
      }
code: public function isLocal($config, $context)
      {
          if ($this->host === null) {
              return true;
          }
          $uri_def = $config->getDefinition('URI');
          if ($uri_def->host === $this->host) {
              return true;
          }
          return false;
      }
code_tokens: public function isLocal ( $ config , $ context ) { if ( $ this -> host === null ) { return true ; } $ uri_def = $ config -> getDefinition ( 'URI' ) ; if ( $ uri_def -> host === $ this -> host ) { return true ; } return false ; }
docstring: Returns true if this URL might be considered a 'local' URL given
  the current context.  This is true when the host is null, or
  when it matches the host supplied to the configuration.
  
  Note that this does not do any scheme checking, so it is mostly
  only appropriate for metadata that doesn't care about protocol
  security.  isBenign is probably what you actually want.
  @param HTMLPurifier_Config $config
  @param HTMLPurifier_Context $context
  @return bool
docstring_tokens: Returns true if this URL might be considered a local URL given the current context . This is true when the host is null or when it matches the host supplied to the configuration .