From d8858f27c60bb309b3164ea1e941e9f45730f6ee Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 26 Dec 2012 10:52:44 +0400 Subject: [PATCH] disable htmLawed tag balancing (should be handled later by DOMDocument) (closes #521) --- include/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions.php b/include/functions.php index 1db3b117..9c107c59 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2523,7 +2523,7 @@ $res = trim($str); if (!$res) return ''; - $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1); + $config = array('safe' => 1, 'deny_attribute' => 'style, width, height, class, id', 'comment' => 1, 'cdata' => 1, 'balance' => 0); $res = htmLawed($res, $config); if (get_pref($link, "STRIP_IMAGES", $owner)) { -- 2.39.5