Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / URIScheme / http.php
blob7abc6680fdc3a27c047280cbe95a606668098c2f
1 <?php
3 require_once 'HTMLPurifier/URIScheme.php';
5 /**
6 * Validates http (HyperText Transfer Protocol) as defined by RFC 2616
7 */
8 class HTMLPurifier_URIScheme_http extends HTMLPurifier_URIScheme {
10 var $default_port = 80;
11 var $browsable = true;
12 var $hierarchical = true;
14 function validate(&$uri, $config, &$context) {
15 parent::validate($uri, $config, $context);
16 $uri->userinfo = null;
17 return true;