From 62f6123443c146a60c737b36f1c8d5b1480a144f Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 7 Jan 2006 09:13:38 +0000 Subject: [PATCH] * Replacing custom escaping code with a call to Sanitizer::escapeId() --- includes/Parser.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 3050e7797a..629d3caaf7 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2897,11 +2897,7 @@ class Parser # strip out HTML $canonized_headline = preg_replace( '/<.*?' . '>/','',$canonized_headline ); $tocline = trim( $canonized_headline ); - $canonized_headline = urlencode( Sanitizer::decodeCharReferences( str_replace(' ', '_', $tocline) ) ); - $replacearray = array( - '%3A' => ':', - '%' => '.' - ); + $canonized_headline = Sanitizer::escapeId( $tocline ); $canonized_headline = str_replace(array_keys($replacearray),array_values($replacearray),$canonized_headline); $refers[$headlineCount] = $canonized_headline; -- 2.20.1