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