[SUCS Devel] [Git][sucssite/sucs-site][master] Cut a bit too much from motd.php :)

Imran Hussain imranh at sucs.org
Thu Jan 24 12:02:15 GMT 2019


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
23899139 by Imran Hussain at 2019-01-24T12:02:12Z
Cut a bit too much from motd.php :)
- - - - -


1 changed file:

- components/motd.php


Changes:

=====================================
components/motd.php
=====================================
@@ -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) {



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/23899139e50e4928cf55d84eeff631b41c6d48c8

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/23899139e50e4928cf55d84eeff631b41c6d48c8
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20190124/4a9cb27c/attachment.html>


More information about the Devel mailing list