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

37 lines
655 B
PHP
Raw Normal View History

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