nntp.php 628 B

1234567891011121314151617181920212223242526272829303132
  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. {
  7. /**
  8. * @type int
  9. */
  10. public $default_port = 119;
  11. /**
  12. * @type bool
  13. */
  14. public $browsable = false;
  15. /**
  16. * @param HTMLPurifier_URI $uri
  17. * @param HTMLPurifier_Config $config
  18. * @param HTMLPurifier_Context $context
  19. * @return bool
  20. */
  21. public function doValidate(&$uri, $config, $context)
  22. {
  23. $uri->userinfo = null;
  24. $uri->query = null;
  25. return true;
  26. }
  27. }
  28. // vim: et sw=4 sts=4