From f3e4046874513427bb3332c4c28bb4c3e3b532e1 Mon Sep 17 00:00:00 2001 From: Tom Lake <tswsl1989@sucs.org> Date: Sun, 4 Dec 2011 19:05:10 +0000 Subject: [PATCH] Fix the – replacement regex --- components/motd.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/motd.php b/components/motd.php index 075ea1c..b72819d 100644 --- a/components/motd.php +++ b/components/motd.php @@ -10,7 +10,7 @@ function decode_entities($text, $quote_style = ENT_COMPAT) { $trans_tbl = array_flip($trans_tbl); $text = strtr($text, $trans_tbl); } - $text = preg_replace('~&ndash\;~ei', '-', $text); + $text = preg_replace('~&ndash\;~i', '-', $text); $text = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $text); $text = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $text); return $text; -- GitLab