From f6d847739a9149531d0649bf3d38f9e30078106a Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 3 Jul 2009 14:18:45 -0700 Subject: Update the source so the third party code passes the File Structure Test --- .../libraries/HTMLPurifier/HTMLPurifier.kses.php | 30 ---------------------- 1 file changed, 30 deletions(-) delete mode 100644 modules/gallery/libraries/HTMLPurifier/HTMLPurifier.kses.php (limited to 'modules/gallery/libraries/HTMLPurifier/HTMLPurifier.kses.php') diff --git a/modules/gallery/libraries/HTMLPurifier/HTMLPurifier.kses.php b/modules/gallery/libraries/HTMLPurifier/HTMLPurifier.kses.php deleted file mode 100644 index 3143feb1..00000000 --- a/modules/gallery/libraries/HTMLPurifier/HTMLPurifier.kses.php +++ /dev/null @@ -1,30 +0,0 @@ - $attributes) { - $allowed_elements[$element] = true; - foreach ($attributes as $attribute => $x) { - $allowed_attributes["$element.$attribute"] = true; - } - } - $config->set('HTML.AllowedElements', $allowed_elements); - $config->set('HTML.AllowedAttributes', $allowed_attributes); - $allowed_schemes = array(); - if ($allowed_protocols !== null) { - $config->set('URI.AllowedSchemes', $allowed_protocols); - } - $purifier = new HTMLPurifier($config); - return $purifier->purify($string); -} - -// vim: et sw=4 sts=4 -- cgit v1.2.3