diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 03:08:15 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-11-28 03:08:15 +0000 |
commit | 027b3b22060b518c64d138900766fc3a52156a9d (patch) | |
tree | 12161f81fef7622ad5bfc846139c16aeae4ec3f3 /modules/node/node.module | |
parent | 222fa77f84ec216505b0971a186002ba52f289c3 (diff) | |
download | brdo-027b3b22060b518c64d138900766fc3a52156a9d.tar.gz brdo-027b3b22060b518c64d138900766fc3a52156a9d.tar.bz2 |
#93684 by collin. Refine handling of teaser truncation with PHP input format.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index f80eb119a..3b9e302b8 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -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; } } |