http.php 441 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * Validates http (HyperText Transfer Protocol) as defined by RFC 2616
  4. */
  5. class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme {
  6. public $default_port = 80;
  7. public $browsable = true;
  8. public $hierarchical = true;
  9. public function validate(&$uri, $config, $context) {
  10. parent::validate($uri, $config, $context);
  11. $uri->userinfo = null;
  12. return true;
  13. }
  14. }
  15. // vim: et sw=4 sts=4