File indexing completed on 2024-05-12 06:02:06

0001 <?php
0002 
0003 /**
0004  * Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
0005  */
0006 class HTMLPurifier_URIScheme_nntp extends HTMLPurifier_URIScheme
0007 {
0008     /**
0009      * @type int
0010      */
0011     public $default_port = 119;
0012 
0013     /**
0014      * @type bool
0015      */
0016     public $browsable = false;
0017 
0018     /**
0019      * @param HTMLPurifier_URI $uri
0020      * @param HTMLPurifier_Config $config
0021      * @param HTMLPurifier_Context $context
0022      * @return bool
0023      */
0024     public function doValidate(&$uri, $config, $context)
0025     {
0026         $uri->userinfo = null;
0027         $uri->query = null;
0028         return true;
0029     }
0030 }
0031 
0032 // vim: et sw=4 sts=4