root/afridex/plugins/Flutter/purifier_lib/HTMLPurifier/URIScheme/nntp.php @ 22

Revision 21, 461 bytes (checked in by admin, 18 years ago)
Line 
1<?php
2
3/**
4 * Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
5 */
6class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme {
7   
8    public $default_port = 119;
9    public $browsable = false;
10   
11    public function validate(&$uri, $config, $context) {
12        parent::validate($uri, $config, $context);
13        $uri->userinfo = null;
14        $uri->query    = null;
15        return true;
16    }
17   
18}
19
Note: See TracBrowser for help on using the browser.