Dramatically rewrite null host URI handling.
[htmlpurifier.git] / library / HTMLPurifier / URIScheme / news.php
blob84a6748d8d07dd783ba5ac9ae50bbb78920cc3ad
1 <?php
3 /**
4 * Validates news (Usenet) as defined by generic RFC 1738
5 */
6 class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme {
8 public $browsable = false;
9 public $may_omit_host = true;
11 public function doValidate(&$uri, $config, $context) {
12 $uri->userinfo = null;
13 $uri->host = null;
14 $uri->port = null;
15 $uri->query = null;
16 // typecode check needed on path
17 return true;
22 // vim: et sw=4 sts=4