MDL-14898 upgraded html purifier to 3.1.0 in HEAD

This commit is contained in:
skodak
2008-06-16 16:39:09 +00:00
parent b553527e99
commit eb203ee412
290 changed files with 4780 additions and 3432 deletions
+3 -5
View File
@@ -1,7 +1,5 @@
<?php
require_once 'HTMLPurifier/URI.php';
/**
* Parses a URI into the components and fragment identifier as specified
* by RFC 3986.
@@ -12,9 +10,9 @@ class HTMLPurifier_URIParser
/**
* Instance of HTMLPurifier_PercentEncoder to do normalization with.
*/
var $percentEncoder;
protected $percentEncoder;
function HTMLPurifier_URIParser() {
public function __construct() {
$this->percentEncoder = new HTMLPurifier_PercentEncoder();
}
@@ -24,7 +22,7 @@ class HTMLPurifier_URIParser
* @return HTMLPurifier_URI representation of URI. This representation has
* not been validated yet and may not conform to RFC.
*/
function parse($uri) {
public function parse($uri) {
$uri = $this->percentEncoder->normalize($uri);