nntp.php 452 B

1234567891011121314151617181920
  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 validate(&$uri, $config, $context) {
  9. parent::validate($uri, $config, $context);
  10. $uri->userinfo = null;
  11. $uri->query = null;
  12. return true;
  13. }
  14. }
  15. // vim: et sw=4 sts=4