summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-28 03:08:15 +0000
committerNeil Drumm <drumm@3064.no-reply.drupal.org>2006-11-28 03:08:15 +0000
commit027b3b22060b518c64d138900766fc3a52156a9d (patch)
tree12161f81fef7622ad5bfc846139c16aeae4ec3f3 /modules/node/node.module
parent222fa77f84ec216505b0971a186002ba52f289c3 (diff)
downloadbrdo-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.module2
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;
}
}