From fdebae88c2c61915566d2eef910f7913c47930c8 Mon Sep 17 00:00:00 2001 From: thomascube Date: Thu, 18 Sep 2008 20:23:39 +0000 Subject: Better detection of HTML double-encoded entities --- program/include/main.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/include/main.inc b/program/include/main.inc index c279f3012..908ca3adc 100644 --- a/program/include/main.inc +++ b/program/include/main.inc @@ -347,7 +347,7 @@ function rep_specialchars_output($str, $enctype='', $mode='', $newlines=TRUE) $str = strip_tags($str); // avoid douple quotation of & - $out = preg_replace('/&([a-z]{2,5}|#[0-9]{2,4});/', '&\\1;', strtr($str, $encode_arr)); + $out = preg_replace('/&([A-Za-z]{2,6}|#[0-9]{2,4});/', '&\\1;', strtr($str, $encode_arr)); return $newlines ? nl2br($out) : $out; } -- cgit v1.2.3