Commit 027b3b22 authored by drumm's avatar drumm
Browse files

#93684 by collin. Refine handling of teaser truncation with PHP input format.

parent 222fa77f
......@@ -158,7 +158,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) && (strpos($body, '<?') < $delimiter)) {
if (isset($filters['filter/1']) && (strpos($body, '<?') !== FALSE) && ($delimiter === 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