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