]> git.mxchange.org Git - friendica.git/commitdiff
Relocated the "require_once" for the htmlpurifier
authorMichael Vogel <icarus@dabo.de>
Tue, 18 Aug 2015 06:38:42 +0000 (08:38 +0200)
committerMichael Vogel <icarus@dabo.de>
Tue, 18 Aug 2015 06:38:42 +0000 (08:38 +0200)
include/api.php

index b6fd1d2de296e49db3839cce6833a5b66a1bcc9f..2fd7d6d45a0999a32b7aa8130a152c61653f4247 100644 (file)
@@ -12,7 +12,6 @@
        require_once("mod/item.php");
        require_once('include/security.php');
        require_once('include/contact_selectors.php');
-       require_once('library/HTMLPurifier.auto.php');
        require_once('include/html2bbcode.php');
        require_once('mod/wall_upload.php');
        require_once("mod/proxy.php");
                //$txt = urldecode(requestdata('status'));
 
                if((strpos($txt,'<') !== false) || (strpos($txt,'>') !== false)) {
+
+                       require_once('library/HTMLPurifier.auto.php');
+
                        $txt = html2bb_video($txt);
                        $config = HTMLPurifier_Config::createDefault();
                        $config->set('Cache.DefinitionImpl', null);
                        $txt = requestdata('htmlstatus');
                        if((strpos($txt,'<') !== false) || (strpos($txt,'>') !== false)) {
 
+                               require_once('library/HTMLPurifier.auto.php');
+
                                $txt = html2bb_video($txt);
 
                                $config = HTMLPurifier_Config::createDefault();
                                $config->set('Cache.DefinitionImpl', null);
 
-
                                $purifier = new HTMLPurifier($config);
                                $txt = $purifier->purify($txt);