From 7b3b076f4dc8386c04a9379a818127bca9438825 Mon Sep 17 00:00:00 2001 From: Platonides Date: Thu, 24 Jun 2010 13:44:50 +0000 Subject: [PATCH] Follow up r68491. Perform doAllQuotes before external links. Added test case from http://es.wikipedia.org/w/index.php?title=Pablo_Picasso&action=edit§ion=5&oldid=38079844 --- includes/parser/Parser.php | 2 +- maintenance/parserTests.txt | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index 421bbb1e2b..9ee2499de8 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -1073,8 +1073,8 @@ class Parser { $text = $df->reformat( $this->mOptions->getDateFormat(), $text ); } $text = $this->replaceInternalLinks( $text ); - $text = $this->replaceExternalLinks( $text ); $text = $this->doAllQuotes( $text ); + $text = $this->replaceExternalLinks( $text ); # replaceInternalLinks may sometimes leave behind # absolute URLs, which have to be masked to hide them from replaceExternalLinks diff --git a/maintenance/parserTests.txt b/maintenance/parserTests.txt index bf94ea81be..0858eb95b1 100644 --- a/maintenance/parserTests.txt +++ b/maintenance/parserTests.txt @@ -1013,6 +1013,15 @@ External link containing double-single-quotes in text embedded in italics (bug 4

!! end +!! test +External link containing double-single-quotes with no space separating the url from text in italics +!! input +[http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm''La muerte de Casagemas'' (1901) en el sitio de [[Museo Picasso (París)|Museo Picasso]].] +!! result +

La muerte de Casagemas (1901) en el sitio de Museo Picasso. +

+!! end + !! test URL-encoding in URL functions (single parameter) !! input -- 2.20.1