Loading components/motd.php +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ $motd_file = "/etc/motd"; function decode_entities($text, $quote_style = ENT_COMPAT) { $text = html_entity_decode($text, $quote_style, 'ISO-8859-1'); // NOTE: UTF-8 does not work! $text = preg_replace('~&ndash\;~i', '-', $text); $text = preg_replace_callback('~&#x([0-9a-f]+);~i', function ($matches) { foreach ($matches as $match) { Loading Loading
components/motd.php +1 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ $motd_file = "/etc/motd"; function decode_entities($text, $quote_style = ENT_COMPAT) { $text = html_entity_decode($text, $quote_style, 'ISO-8859-1'); // NOTE: UTF-8 does not work! $text = preg_replace('~&ndash\;~i', '-', $text); $text = preg_replace_callback('~&#x([0-9a-f]+);~i', function ($matches) { foreach ($matches as $match) { Loading