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

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