mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 15:48:42 +00:00
797b899305
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1334 48356398-32a2-884e-a903-53898d9a118a
24 lines
524 B
PHP
24 lines
524 B
PHP
<?php
|
|
|
|
require_once 'HTMLPurifier/URIScheme.php';
|
|
|
|
/**
|
|
* Validates news (Usenet) as defined by generic RFC 1738
|
|
*/
|
|
class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme {
|
|
|
|
var $browsable = false;
|
|
|
|
function validate(&$uri, $config, &$context) {
|
|
parent::validate($uri, $config, $context);
|
|
$uri->userinfo = null;
|
|
$uri->host = null;
|
|
$uri->port = null;
|
|
$uri->query = null;
|
|
// typecode check needed on path
|
|
return true;
|
|
}
|
|
|
|
}
|
|
|