From 3aef35627d7f47570fb3a9435d55bf95d4ddd0e2 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 31 Oct 2013 22:42:23 +0000 Subject: [PATCH] Fix oops in htmLawd callback for HTML cleanup --- include/class.format.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.format.php b/include/class.format.php index a6dd026d1..d246948e5 100644 --- a/include/class.format.php +++ b/include/class.format.php @@ -214,7 +214,7 @@ class Format { 'tidy' => -1, 'deny_attribute' => 'id', 'schemes' => 'href: aim, feed, file, ftp, gopher, http, https, irc, mailto, news, nntp, sftp, ssh, telnet; *:file, http, https; src: cid, http, https, data', - 'hook_tag' => array('Format', '__html_cleanup'), + 'hook_tag' => function($e, $a=0) { return Format::__html_cleanup($e, $a); }, ); return Format::html($html, $config); -- GitLab