[drupal-devel] [bug] node.module ignores the teaser break
Aran Deltac
drupal-devel at drupal.org
Thu Apr 28 06:07:09 UTC 2005
Issue status update for http://drupal.org/node/21469
Project: Drupal
Version: 4.6.0
Component: node system
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: Aran Deltac
Updated by: Aran Deltac
Status: patch
Woops, spelling error. Sorry. :)
--- node.module 2005-04-11 12:39:40.000000000 -0400
+++ node.module 2005-04-28 01:29:07.000000000 -0400
@@ -168,7 +168,7 @@
}
// If the body contains PHP code, do not split it up to prevent
parse errors.
- if (strpos($body, '<?') != false) {
+ if ($delimiter ==0 && strpos($body, '<?') != false) {
return $body;
}
Aran Deltac
Previous comments:
------------------------------------------------------------------------
April 27, 2005 - 21:52 : Aran Deltac
If someone chooses to use the <!--break--> to exactly state where they
want there there break, node.module shouldn't ignore it. If an admin
(or someone with similar privileges to post live php code) puts the
break in the wrong spot, that's there own fault. It should be possible
to have teasers even for nodes with live php content.
--- node.module 2005-04-11 12:39:40.000000000 -0400
+++ node.module 2005-04-28 01:29:07.000000000 -0400
@@ -168,7 +168,7 @@
}
// If the body contains PHP code, do not split it up to prevent
parse errors.
- if (strpos($body, '<?') != false) {
+ if ($delimeter ==0 && strpos($body, '<?') != false) {
return $body;
}
More information about the drupal-devel
mailing list