summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Wittens2005-12-31 04:01:56 (GMT)
committer Steven Wittens2005-12-31 04:01:56 (GMT)
commit67fd0551b0ef9872ec59f440448e71e06376e990 (patch)
tree028c26c9ca35c00762ffbb07cc75701d9579c0d0
parent8ff4b4e7435121d2b0f2678830a7029837430c51 (diff)
- #42828: Auto-p destroys alphanumeric named entities like ½
-rw-r--r--modules/filter.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/filter.module b/modules/filter.module
index cc76a6e..4b8c946 100644
--- a/modules/filter.module
+++ b/modules/filter.module
@@ -994,7 +994,7 @@ function _filter_autop($text) {
$chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks
$chunk = preg_replace('!(</?(?:table|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $chunk);
$chunk = preg_replace('!<br />(\s*</?(?:p|li|div|th|pre|td|ul|ol)>)!', '$1', $chunk);
- $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&amp;$1', $chunk);
+ $chunk = preg_replace('/&([^#])(?![A-Za-z0-9]{0,7};)/', '&amp;$1', $chunk);
}
$output .= $chunk;
}