http.php 655 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Validates http (HyperText Transfer Protocol) as defined by RFC 2616
  4. */
  5. class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme
  6. {
  7. /**
  8. * @type int
  9. */
  10. public $default_port = 80;
  11. /**
  12. * @type bool
  13. */
  14. public $browsable = true;
  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