Always strip those tags.
git-svn-id: https://develop.svn.wordpress.org/trunk@245 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
199a0eaa76
commit
d1826532d4
@ -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
Block a user