summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/filter.module2
-rw-r--r--modules/filter/filter.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter.module b/modules/filter.module
index c77c51351..05d875419 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -956,7 +956,7 @@ function _filter_autop($text) {
if ($i % 2) {
// Opening or closing tag?
$open = ($chunk{1} != '/');
- list(, $tag) = split('[< ]', $chunk);
+ list($tag) = split('[ >]', substr($chunk, 2 - $open), 2);
if (!$ignore) {
if ($open) {
$ignore = true;
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index c77c51351..05d875419 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -956,7 +956,7 @@ function _filter_autop($text) {
if ($i % 2) {
// Opening or closing tag?
$open = ($chunk{1} != '/');
- list(, $tag) = split('[< ]', $chunk);
+ list($tag) = split('[ >]', substr($chunk, 2 - $open), 2);
if (!$ignore) {
if ($open) {
$ignore = true;