You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 line
628B

  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