summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-05-07 00:09:31 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-05-07 00:09:31 +0000
commitcf6e9aa509daec3eb610f6175106092198331a3a (patch)
treec000121df7d92be7754a37de632ce31b88425f04
parent821f619048e024fca00404735457d1faed792a23 (diff)
downloadbrdo-cf6e9aa509daec3eb610f6175106092198331a3a.tar.gz
brdo-cf6e9aa509daec3eb610f6175106092198331a3a.tar.bz2
- Line-break filter tag matching was not case-insensitive, so it didn't pick up e.g. <PRE>
-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 79a3c2472..94784caee 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -946,7 +946,7 @@ function _filter_autop($text) {
// We don't apply any processing to the contents of these tags to avoid messing
// up code. We look for matched pairs and allow basic nesting. For example:
// "processed <pre> ignored <script> ignored </script> ignored </pre> processed"
- $chunks = preg_split('@(</?(?:pre|script|style)[^>]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
+ $chunks = preg_split('@(</?(?:pre|script|style)[^>]*>)@i', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
// Note: PHP ensures the array consists of alternating delimiters and literals
// and begins and ends with a literal (inserting NULL as required).
$ignore = false;
diff --git a/modules/filter/filter.module b/modules/filter/filter.module
index 79a3c2472..94784caee 100644
--- a/modules/filter/filter.module
+++ b/modules/filter/filter.module
@@ -946,7 +946,7 @@ function _filter_autop($text) {
// We don't apply any processing to the contents of these tags to avoid messing
// up code. We look for matched pairs and allow basic nesting. For example:
// "processed <pre> ignored <script> ignored </script> ignored </pre> processed"
- $chunks = preg_split('@(</?(?:pre|script|style)[^>]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
+ $chunks = preg_split('@(</?(?:pre|script|style)[^>]*>)@i', $text, -1, PREG_SPLIT_DELIM_CAPTURE);
// Note: PHP ensures the array consists of alternating delimiters and literals
// and begins and ends with a literal (inserting NULL as required).
$ignore = false;