root/afridex/plugins/Flutter/purifier_lib/HTMLPurifier/URIScheme/http.php @ 21

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