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;
|
|
|
|
|
|
|
|
function validateComponents(
|
|
|
|
$userinfo, $host, $port, $path, $query, $config
|
|
|
|
) {
|
|
|
|
list($userinfo, $host, $port, $path, $query) =
|
|
|
|
parent::validateComponents(
|
|
|
|
$userinfo, $host, $port, $path, $query, $config );
|
|
|
|
return array(null, $host, $port, $path, $query);
|
2006-08-12 03:56:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|