diff --git a/components/motd.php b/components/motd.php index 2e37c6d12bb554673e13d1bb1108d2f1d60c336a..768c483dc2c68bb044cdcb771b663d9d4335261d 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('–', '-', $text); + $text = preg_replace('~–~ei', '-', $text); $text = preg_replace('~&#x([0-9a-f]+);~ei', 'chr(hexdec("\\1"))', $text); $text = preg_replace('~&#([0-9]+);~e', 'chr("\\1")', $text); return $text;