MDL-9123:
[moodle-linuxchix.git] / lib / htmlpurifier / HTMLPurifier / URIScheme / http.php
blob54b250da5205a75f0237683f42999102101d51cb
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;
13 function validateComponents(
14 $userinfo, $host, $port, $path, $query, $config, &$context
15 ) {
16 list($userinfo, $host, $port, $path, $query) =
17 parent::validateComponents(
18 $userinfo, $host, $port, $path, $query, $config, $context );
19 return array(null, $host, $port, $path, $query);