nntp.php 403 B

12345678910111213141516171819
  1. <?php
  2. /**
  3. * Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
  4. */
  5. class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme {
  6. public $default_port = 119;
  7. public $browsable = false;
  8. public function doValidate(&$uri, $config, $context) {
  9. $uri->userinfo = null;
  10. $uri->query = null;
  11. return true;
  12. }
  13. }
  14. // vim: et sw=4 sts=4