From 7d20690347156bdaae60ab310f9a43b393038f5b Mon Sep 17 00:00:00 2001 From: Tom Lake <tswsl1989@sucs.org> Date: Sun, 26 Aug 2012 14:38:14 +0000 Subject: [PATCH] Fix ' in motd --- components/motd.php | 1 + 1 file changed, 1 insertion(+) diff --git a/components/motd.php b/components/motd.php index 60a4860..11ac8d1 100644 --- a/components/motd.php +++ b/components/motd.php @@ -49,6 +49,7 @@ $body = str_replace("<li>", " * ", $body); $body = str_replace("</li>", "\n ", $body); $body = str_replace(" ", " ", $body); $body = str_replace("…", "...", $body); +$body = str_replace("'", "'", $body); // remove hyperlinks, collect to display later $body = preg_replace(":<a href=['\"](.+?)['\"].*?>(.*?)</a>:e", "'\\2['.linkcounter('\\1').']'", $body); $body = strip_tags($body); -- GitLab