1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-08 12:31:44 +01:00
vichan/inc/lib/htmlpurifier-4.5.0/library/HTMLPurifier/URIScheme/nntp.php
2014-09-23 23:25:04 +00:00

20 lines
422 B
PHP

<?php
/**
* Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
*/
class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme {
public $default_port = 119;
public $browsable = false;
public function doValidate(&$uri, $config, $context) {
$uri->userinfo = null;
$uri->query = null;
return true;
}
}
// vim: et sw=4 sts=4