http.php 392 B

12345678910111213141516171819
  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 doValidate(&$uri, $config, $context) {
  10. $uri->userinfo = null;
  11. return true;
  12. }
  13. }
  14. // vim: et sw=4 sts=4