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.

37 lines
655B

  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