Index: trunk/phase3/maintenance/parserTests.txt |
— | — | @@ -1014,6 +1014,15 @@ |
1015 | 1015 | !! end |
1016 | 1016 | |
1017 | 1017 | !! test |
| 1018 | +External link containing double-single-quotes with no space separating the url from text in italics |
| 1019 | +!! input |
| 1020 | +[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]].] |
| 1021 | +!! result |
| 1022 | +<p><a href="http://www.musee-picasso.fr/pages/page_id18528_u1l2.htm" class="external text" rel="nofollow"><i>La muerte de Casagemas</i> (1901) en el sitio de <a href="https://www.mediawiki.org/index.php?title=Museo_Picasso_(Par%C3%ADs)&action=edit&redlink=1" class="new" title="Museo Picasso (París) (page does not exist)">Museo Picasso</a>.</a> |
| 1023 | +</p> |
| 1024 | +!! end |
| 1025 | + |
| 1026 | +!! test |
1018 | 1027 | URL-encoding in URL functions (single parameter) |
1019 | 1028 | !! input |
1020 | 1029 | {{localurl:Some page|amp=&}} |
Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1073,8 +1073,8 @@ |
1074 | 1074 | $text = $df->reformat( $this->mOptions->getDateFormat(), $text ); |
1075 | 1075 | } |
1076 | 1076 | $text = $this->replaceInternalLinks( $text ); |
| 1077 | + $text = $this->doAllQuotes( $text ); |
1077 | 1078 | $text = $this->replaceExternalLinks( $text ); |
1078 | | - $text = $this->doAllQuotes( $text ); |
1079 | 1079 | |
1080 | 1080 | # replaceInternalLinks may sometimes leave behind |
1081 | 1081 | # absolute URLs, which have to be masked to hide them from replaceExternalLinks |