Commit 5333b648 authored by drumm's avatar drumm

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

#80989 by fgm. When using the PHP code input format, break the node teaser out if the teaser starts after the delimiter.
parent 910143c0
......@@ -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;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment