mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 15:48:42 +00:00
a7fab00cdd
- Update TODO list - URISchemeRegistry doesn't return a reference for instance anymore, should do the same for other singletons git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1477 48356398-32a2-884e-a903-53898d9a118a
22 lines
475 B
PHP
22 lines
475 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/URIScheme.php';
|
|
|
|
/**
|
|
* Validates http (HyperText Transfer Protocol) as defined by RFC 2616
|
|
*/
|
|
class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme {
|
|
|
|
public $default_port = 80;
|
|
public $browsable = true;
|
|
public $hierarchical = true;
|
|
|
|
public function validate(&$uri, $config, $context) {
|
|
parent::validate($uri, $config, $context);
|
|
$uri->userinfo = null;
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|