diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-01 07:16:09 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-09-01 07:16:09 +0000 |
commit | 5333b648a3cb2aa3cfa15d48011a80d4a65e155f (patch) | |
tree | cb1c2f4f3f5088d016870236c514aac94cab7d41 | |
parent | 910143c0032275f1abff51901fb36eabc0a38a5c (diff) | |
download | brdo-5333b648a3cb2aa3cfa15d48011a80d4a65e155f.tar.gz brdo-5333b648a3cb2aa3cfa15d48011a80d4a65e155f.tar.bz2 |
#80989 by fgm. When using the PHP code input format, break the node teaser out if the teaser starts after the delimiter.
-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 54e6b2c00..e52f98015 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -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; } } |