From e6a406d0bb5958d6380741ad91f1a72f2ecdba44 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Wed, 21 Feb 2007 13:49:23 -0500 Subject: [PATCH] Fixed CSS bugs (#1484210 and #1484161) and quoting issue (#1484253) --- program/include/main.inc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/program/include/main.inc b/program/include/main.inc index 88c22b8..7e7f216 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -1032,7 +1032,7 @@ $str = strip_tags($str); // avoid douple quotation of & - $out = preg_replace('/&([a-z]{2,5});/', '&\\1;', strtr($str, $encode_arr)); + $out = preg_replace('/&([a-z]{2,5}|#[0-9]{2,4});/', '&\\1;', strtr($str, $encode_arr)); return $newlines ? nl2br($out) : $out; } -- Gitblit v1.9.1