diff --git a/components/motd.php b/components/motd.php index 33d938ef58800edc2d28e4c74179d828f5e7f80e..0eebddb6b36877795d4ebfb7c61f7faeee9a82c6 100644 --- a/components/motd.php +++ b/components/motd.php @@ -40,7 +40,7 @@ $body = str_replace("<li>", " * ", $body); $body = str_replace("</li>", "\n ", $body); $body = str_replace(" ", " ", $body); // remove hyperlinks, collect to display later -$body = preg_replace(":<a href=['\"](.+?)['\"]>(.*?)</a>:e", "'\\2['.linkcounter('\\1').']'", $body); +$body = preg_replace(":<a href=['\"](.+?)['\"].*?>(.*?)</a>:e", "'\\2['.linkcounter('\\1').']'", $body); $body = strip_tags($body); if (isset($uris)) { $body .= "----\n";