Skip to content
Snippets Groups Projects
Commit 5333b648 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -164,7 +164,7 @@ function node_teaser($body, $format = NULL) { ...@@ -164,7 +164,7 @@ function node_teaser($body, $format = NULL) {
// parse errors. // parse errors.
if (isset($format)) { if (isset($format)) {
$filters = filter_list_format($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; return $body;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment