diff --git a/include/functions_trackbacks.inc.php b/include/functions_trackbacks.inc.php index 315426bb..cb9dd1f5 100644 --- a/include/functions_trackbacks.inc.php +++ b/include/functions_trackbacks.inc.php @@ -510,10 +510,16 @@ function fetchPingbackData( &$comment) { $comment['title'] = strip_tags($matches[1]); } + // Try to get content from first

tag on: + if (preg_match('@]*>(.*?)@is',$fContent,$matches)) { + $body = $matches[1]; + } + if (empty($body) && preg_match('@]*>(.*?)@is',$fContent,$matches)){ + $body = $matches[1]; + } // Get a part of the article - if (preg_match('@]*>(.*?)@is',$fContent,$matches)) { - - $body = strip_tags($matches[1]); + if (!empty($body)) { + $body = strip_tags($body); //TODO: Serendipity comes into trouble wit html_entity_decode and "Umlaute" $body = str_replace(array(" "),array(' '),$body);