Dramatically rewrite null host URI handling.
[htmlpurifier.git] / library / HTMLPurifier / URIScheme / nntp.php
blob4ccea0dfcf95114dbf8745c3ac3c23a7be5c7565
1 <?php
3 /**
4 * Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
5 */
6 class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme {
8 public $default_port = 119;
9 public $browsable = false;
11 public function doValidate(&$uri, $config, $context) {
12 $uri->userinfo = null;
13 $uri->query = null;
14 return true;
19 // vim: et sw=4 sts=4