2006-08-12 18:58:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'HTMLPurifier/URIScheme.php';
|
|
|
|
|
2006-08-20 22:06:11 +00:00
|
|
|
/**
|
|
|
|
* Validates news (Usenet) as defined by generic RFC 1738
|
|
|
|
*/
|
2006-08-12 18:58:54 +00:00
|
|
|
class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme {
|
|
|
|
|
|
|
|
function validateComponents(
|
2006-10-27 01:20:10 +00:00
|
|
|
$userinfo, $host, $port, $path, $query, $config, &$context
|
2006-08-12 18:58:54 +00:00
|
|
|
) {
|
|
|
|
list($userinfo, $host, $port, $path, $query) =
|
|
|
|
parent::validateComponents(
|
2006-10-27 01:20:10 +00:00
|
|
|
$userinfo, $host, $port, $path, $query, $config, $context );
|
2006-08-12 18:58:54 +00:00
|
|
|
// typecode check needed on path
|
|
|
|
return array(null, null, null, $path, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|