From 32c2c1272aea30d51da018eb53613dc074c217ae Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Fri, 14 May 2004 13:38:33 +0000 Subject: [PATCH] strip out urlencoded \  (inserted for french spaces, e.g. first space in 'something : something') for section anchors --- includes/Parser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Parser.php b/includes/Parser.php index b119c52d1a..0fcf83f402 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1822,6 +1822,8 @@ class Parser $canonized_headline = preg_replace( "/<.*?" . ">/","",$canonized_headline ); $tocline = trim( $canonized_headline ); $canonized_headline = preg_replace("/[ \\?&\\/<>\\(\\)\\[\\]=,+']+/", '_', urlencode( do_html_entity_decode( $tocline, ENT_COMPAT, $wgInputEncoding ) ) ); + # strip out urlencoded   (inserted for french spaces, e.g. first space in 'something : something') + $canonized_headline = str_replace('%C2%A0','_', $canonized_headline); $refer[$headlineCount] = $canonized_headline; # count how many in assoc. array so we can track dupes in anchors -- 2.20.1