From 5d6a4b79dd92b92bdcf70191842c91850e1b7163 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Mon, 30 Jun 2003 02:51:50 +0000 Subject: [PATCH] improving anchor canonization --- includes/OutputPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index edda205224..598bdcde28 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1255,8 +1255,8 @@ class OutputPage { $canonized_headline=preg_replace("/<.*?>/","",$headline); // strip out HTML - $canonized_headline=htmlspecialchars($canonized_headline); $tocline=$canonized_headline; + $canonized_headline=str_replace('"',"",$canonized_headline); $canonized_headline=str_replace(" ","_",trim($canonized_headline)); $refer[$c]=$canonized_headline; $refers[$canonized_headline]++; // count how many in assoc. array so we can track dupes in anchors -- 2.20.1