#80989 by fgm. When using the PHP code input format, break the node teaser out if the teaser starts after the delimiter.

5.x
Neil Drumm 2006-09-01 07:16:09 +00:00
parent 910143c003
commit 5333b648a3
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,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;
}
}