Always strip those tags.
git-svn-id: http://svn.automattic.com/wordpress/trunk@245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1120a2c27e
commit
afce238b27
|
@ -1136,9 +1136,6 @@ function pingback($content, $post_ID) {
|
||||||
|
|
||||||
function balanceTags($text, $is_comment = 0) {
|
function balanceTags($text, $is_comment = 0) {
|
||||||
global $use_balanceTags;
|
global $use_balanceTags;
|
||||||
if ($use_balanceTags == 0) {
|
|
||||||
return $text;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($is_comment) {
|
if ($is_comment) {
|
||||||
// sanitise HTML attributes, remove frame/applet tags
|
// 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);
|
$text = preg_replace('#\<(\/{0,1})([a-z]{0,2})(frame|applet)(.*?)\>#i', '', $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($use_balanceTags == 0) {
|
||||||
|
return $text;
|
||||||
|
}
|
||||||
$tagstack = array();
|
$tagstack = array();
|
||||||
$stacksize = 0;
|
$stacksize = 0;
|
||||||
$tagqueue = '';
|
$tagqueue = '';
|
||||||
|
|
Loading…
Reference in New Issue