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