From 1554456c2d58b6be7807331c572870546f4d97db Mon Sep 17 00:00:00 2001
From: Denis Walker <dez@sucs.org>
Date: Sun, 4 Dec 2011 18:18:50 +0000
Subject: [PATCH] Adds support for ndash to motd processor

---
 components/motd.php | 1 +
 1 file changed, 1 insertion(+)

diff --git a/components/motd.php b/components/motd.php
index b9905b5..d1a3065 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="&ndash;") $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