X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FHTMLPurifier%2FHTMLPurifier.kses.php;h=752290077f0faaabf95afd39dcb3e066903c27e3;hb=ec98fd0c438f5b8f8e5eeee893ad84f121b7249f;hp=3143feb17f2f860cf135f423aaa4c72342fb325a;hpb=81ea0f81173030c73cfc8dd46946d126d3d41622;p=quix0rs-gnu-social.git diff --git a/extlib/HTMLPurifier/HTMLPurifier.kses.php b/extlib/HTMLPurifier/HTMLPurifier.kses.php index 3143feb17f..752290077f 100644 --- a/extlib/HTMLPurifier/HTMLPurifier.kses.php +++ b/extlib/HTMLPurifier/HTMLPurifier.kses.php @@ -7,7 +7,8 @@ require_once dirname(__FILE__) . '/HTMLPurifier.auto.php'; -function kses($string, $allowed_html, $allowed_protocols = null) { +function kses($string, $allowed_html, $allowed_protocols = null) +{ $config = HTMLPurifier_Config::createDefault(); $allowed_elements = array(); $allowed_attributes = array(); @@ -19,7 +20,6 @@ function kses($string, $allowed_html, $allowed_protocols = null) { } $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); }