| PHPIDS | ||||
|
||||
| Coverage | ||||||||||||
| Classes | Methods | Lines | ||||||||||
| Total |
|
100.00% | 1 / 1 |
|
100.00% | 1 / 1 |
|
100.00% | 4 / 4 | |||
| HTMLPurifier_URIScheme_http |
|
100.00% | 1 / 1 |
|
100.00% | 1 / 1 |
|
100.00% | 4 / 4 | |||
| public function validate(&$uri, $config, $context) |
|
100.00% | 1 / 1 |
|
100.00% | 3 / 3 | ||||||
1 : <?php 2 : 3 : /** 4 : * Validates http (HyperText Transfer Protocol) as defined by RFC 2616 5 : */ 6 1 : class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme { 7 : 8 : public $default_port = 80; 9 : public $browsable = true; 10 : public $hierarchical = true; 11 : 12 : public function validate(&$uri, $config, $context) { 13 2 : parent::validate($uri, $config, $context); 14 2 : $uri->userinfo = null; 15 2 : return true; 16 : } 17 : 18 : } 19 : |
| Generated by PHPUnit 3.3.1 and Xdebug 2.0.2 at Thu Sep 25 18:42:10 CEST 2008. |