From d1826532d4faa88ce32ac6d5765cb9c3d15f9bb5 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Wed, 25 Jun 2003 22:13:15 +0000 Subject: [PATCH] Always strip those tags. git-svn-id: https://develop.svn.wordpress.org/trunk@245 602fd350-edb4-49c9-b593-d223f7449a82 --- b2-include/b2functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 4593388008..eee0fc8869 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -1136,9 +1136,6 @@ function pingback($content, $post_ID) { function balanceTags($text, $is_comment = 0) { global $use_balanceTags; - if ($use_balanceTags == 0) { - return $text; - } if ($is_comment) { // sanitise HTML attributes, remove frame/applet tags @@ -1149,6 +1146,9 @@ function balanceTags($text, $is_comment = 0) { $text = preg_replace('#\<(\/{0,1})([a-z]{0,2})(frame|applet)(.*?)\>#i', '', $text); } + if ($use_balanceTags == 0) { + return $text; + } $tagstack = array(); $stacksize = 0; $tagqueue = '';