#80989 by fgm. When using the PHP code input format, break the node teaser out if the teaser starts after the delimiter.
parent
910143c003
commit
5333b648a3
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue