00001 <?php 00002 00006 class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme { 00007 00008 public $browsable = false; 00009 00010 public function validate(&$uri, $config, $context) { 00011 parent::validate($uri, $config, $context); 00012 $uri->userinfo = null; 00013 $uri->host = null; 00014 $uri->port = null; 00015 $uri->query = null; 00016 // typecode check needed on path 00017 return true; 00018 } 00019 00020 } 00021 00022 // vim: et sw=4 sts=4