2006-08-12 03:56:27 +00:00
|
|
|
<?php
|
|
|
|
|
2006-08-20 22:06:11 +00:00
|
|
|
/**
|
|
|
|
* Validates http (HyperText Transfer Protocol) as defined by RFC 2616
|
|
|
|
*/
|
2013-07-16 11:56:14 +00:00
|
|
|
class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @type int
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $default_port = 80;
|
2013-07-16 11:56:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type bool
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $browsable = true;
|
2013-07-16 11:56:14 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type bool
|
|
|
|
*/
|
2007-11-25 02:24:39 +00:00
|
|
|
public $hierarchical = true;
|
2008-12-06 07:28:20 +00:00
|
|
|
|
2013-07-16 11:56:14 +00:00
|
|
|
/**
|
|
|
|
* @param HTMLPurifier_URI $uri
|
|
|
|
* @param HTMLPurifier_Config $config
|
|
|
|
* @param HTMLPurifier_Context $context
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function doValidate(&$uri, $config, $context)
|
|
|
|
{
|
2007-08-01 18:34:46 +00:00
|
|
|
$uri->userinfo = null;
|
|
|
|
return true;
|
2006-08-12 03:56:27 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-12-06 09:24:59 +00:00
|
|
|
// vim: et sw=4 sts=4
|