2010-09-08 23:14:17 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Validates http (HyperText Transfer Protocol) as defined by RFC 2616
|
|
|
|
*/
|
2016-02-09 05:06:17 -05:00
|
|
|
class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @type int
|
|
|
|
*/
|
2010-09-08 23:14:17 -04:00
|
|
|
public $default_port = 80;
|
2016-02-09 05:06:17 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type bool
|
|
|
|
*/
|
2010-09-08 23:14:17 -04:00
|
|
|
public $browsable = true;
|
2016-02-09 05:06:17 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @type bool
|
|
|
|
*/
|
2010-09-08 23:14:17 -04:00
|
|
|
public $hierarchical = true;
|
|
|
|
|
2016-02-09 05:06:17 -05:00
|
|
|
/**
|
|
|
|
* @param HTMLPurifier_URI $uri
|
|
|
|
* @param HTMLPurifier_Config $config
|
|
|
|
* @param HTMLPurifier_Context $context
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function doValidate(&$uri, $config, $context)
|
|
|
|
{
|
2010-09-08 23:14:17 -04:00
|
|
|
$uri->userinfo = null;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// vim: et sw=4 sts=4
|