irc.php 605 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Validates irc
  4. */
  5. class HTMLPurifier_URIScheme_irc extends HTMLPurifier_URIScheme
  6. {
  7. /**
  8. * @type int
  9. */
  10. // public $default_port = 6667;
  11. /**
  12. * @type bool
  13. */
  14. public $browsable = false;
  15. /**
  16. * @type bool
  17. */
  18. public $hierarchical = true;
  19. /**
  20. * @param HTMLPurifier_URI $uri
  21. * @param HTMLPurifier_Config $config
  22. * @param HTMLPurifier_Context $context
  23. * @return bool
  24. */
  25. public function doValidate(&$uri, $config, $context)
  26. {
  27. $uri->userinfo = null;
  28. return true;
  29. }
  30. }
  31. // vim: et sw=4 sts=4