bbcode: Function for cleaning CSS commands (not yet in function)

items.php: The detection if a rss/atom-title is identically to the body is improved.
This commit is contained in:
Michael Vogel 2012-08-17 07:59:21 +02:00
parent b904a21134
commit d40f25ae08
2 changed files with 19 additions and 0 deletions

View file

@ -378,10 +378,12 @@ function title_is_body($title, $body) {
$title = strip_tags($title);
$title = trim($title);
$title = html_entity_decode($title, ENT_QUOTES, 'UTF-8');
$title = str_replace(array("\n", "\r", "\t", " "), array("","","",""), $title);
$body = strip_tags($body);
$body = trim($body);
$body = html_entity_decode($body, ENT_QUOTES, 'UTF-8');
$body = str_replace(array("\n", "\r", "\t", " "), array("","","",""), $body);
if (strlen($title) < strlen($body))