mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 17:01:51 +00:00
20 lines
488 B
PHP
20 lines
488 B
PHP
|
<?php
|
||
|
|
||
|
require_once 'HTMLPurifier/URIScheme.php';
|
||
|
|
||
|
class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme {
|
||
|
|
||
|
var $default_port = 119;
|
||
|
|
||
|
function validateComponents(
|
||
|
$userinfo, $host, $port, $path, $query, $config
|
||
|
) {
|
||
|
list($userinfo, $host, $port, $path, $query) =
|
||
|
parent::validateComponents(
|
||
|
$userinfo, $host, $port, $path, $query, $config );
|
||
|
return array(null, $host, $port, $path, null);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|