page: quote link name fallback
authorMischa POSLAWSKY <perl@shiar.org>
Sat, 12 Dec 2020 16:23:42 +0000 (17:23 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 21 Dec 2020 16:46:33 +0000 (17:46 +0100)
Match title from page html.

article.inc.php

index 7f8e622cde5297f5d71523a42b106a14983f09eb..8600658954243ed9fbb1d99e58f72a0b5a857345 100644 (file)
@@ -89,7 +89,7 @@ class ArchiveArticle
        }
        function name()
        {
-               return $this->safetitle ?: $this->link;
+               return $this->safetitle ?: htmlspecialchars($this->link);
        }
 
        function last()