2006-08-12 03:56:27 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/URIScheme.php';
|
|
|
|
|
2006-08-20 22:06:11 +00:00
|
|
|
/**
|
|
|
|
* Validates http (HyperText Transfer Protocol) as defined by RFC 2616
|
|
|
|
*/
|
2006-08-12 03:56:27 +00:00
|
|
|
class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme {
|
|
|
|
|
2006-08-12 18:58:54 +00:00
|
|
|
var $default_port = 80;
|
2006-11-17 23:09:10 +00:00
|
|
|
var $browsable = true;
|
2007-08-02 21:47:24 +00:00
|
|
|
var $hierarchical = true;
|
2006-08-12 18:58:54 +00:00
|
|
|
|
2007-08-01 18:34:46 +00:00
|
|
|
function validate(&$uri, $config, &$context) {
|
|
|
|
parent::validate($uri, $config, $context);
|
|
|
|
$uri->userinfo = null;
|
|
|
|
return true;
|
2006-08-12 03:56:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|