diff --git a/e107_plugins/tinymce4/plugins/e107/parser.php b/e107_plugins/tinymce4/plugins/e107/parser.php index f05690f82..d878c5f5b 100644 --- a/e107_plugins/tinymce4/plugins/e107/parser.php +++ b/e107_plugins/tinymce4/plugins/e107/parser.php @@ -89,7 +89,12 @@ if($_POST['mode'] == 'tobbcode') $content = updateImg($content); $content = $tp->parseBBTags($content,true); // replace html with bbcode equivalent - echo ($content) ? "[html]".$content."[/html]" : ""; // Add the tags before saving to DB. + if(strip_tags($content, '') == ' ') // Avoid this: [html]
[/html] + { + exit; + } + + echo $content ? "[html]".$content."[/html]" : ""; // Add the tags before saving to DB. } else // bbcode Mode. //XXX Disabled at the moment in tinymce/e_meta.php - post_html is required to activate. {