#80989, node_teaser can provide a better teaser, patch by fgm, backport from HEAD

4.7.x
Gerhard Killesreiter 2006-09-27 13:25:22 +00:00
parent 609efeb926
commit 1426834109
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ function node_teaser($body, $format = NULL) {
// parse errors.
if (isset($format)) {
$filters = filter_list_format($format);
if (isset($filters['filter/1']) && strpos($body, '<?') !== FALSE) {
if (isset($filters['filter/1']) && (strpos($body, '<?') !== FALSE) && (strpos($body, '<?') < $delimiter)) {
return $body;
}
}