friendica-github/vendor/ezyang/htmlpurifier/library/HTMLPurifier/URIScheme/http.php

37 lines
655 B
PHP
Raw Normal View History

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