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

0001 <?php
0002 
0003 /**
0004  * Validates news (Usenet) as defined by generic RFC 1738
0005  */
0006 class HTMLPurifier_URIScheme_news extends HTMLPurifier_URIScheme
0007 {
0008     /**
0009      * @type bool
0010      */
0011     public $browsable = false;
0012 
0013     /**
0014      * @type bool
0015      */
0016     public $may_omit_host = true;
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->host = null;
0028         $uri->port = null;
0029         $uri->query = null;
0030         // typecode check needed on path
0031         return true;
0032     }
0033 }
0034 
0035 // vim: et sw=4 sts=4