Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1829,9 +1829,10 @@ |
1830 | 1830 | $text = $link; |
1831 | 1831 | } else { |
1832 | 1832 | # Bug 4598 madness. Handle the quotes only if they come from the alternate part |
1833 | | - # [[Lista d''e paise d''o munno]] -> <a href="">Lista d''e paise d''o munno</a> |
1834 | | - # [[Criticism of Harry Potter|Criticism of ''Harry Potter'']] -> <a href="Criticism of Harry Potter">Criticism of <i>Harry Potter</i></a> |
1835 | | - $text = $this->doQuotes($text); |
| 1833 | + # [[Lista d''e paise d''o munno]] -> <a href="...">Lista d''e paise d''o munno</a> |
| 1834 | + # [[Criticism of Harry Potter|Criticism of ''Harry Potter'']] |
| 1835 | + # -> <a href="Criticism of Harry Potter">Criticism of <i>Harry Potter</i></a> |
| 1836 | + $text = $this->doQuotes( $text ); |
1836 | 1837 | } |
1837 | 1838 | |
1838 | 1839 | # Link not escaped by : , create the various objects |
Index: trunk/phase3/includes/Linker.php |
— | — | @@ -712,8 +712,8 @@ |
713 | 713 | |
714 | 714 | wfProfileOut( __METHOD__ ); |
715 | 715 | return '<a href="' . htmlspecialchars( $href ) . '" class="new" title="' . |
716 | | - htmlspecialchars( $title->getPrefixedText(), ENT_QUOTES ) . '">' . |
717 | | - htmlspecialchars( $prefix . $text . $inside, ENT_NOQUOTES ) . '</a>' . $trail; |
| 716 | + htmlspecialchars( $title->getPrefixedText(), ENT_QUOTES ) . '">' . |
| 717 | + htmlspecialchars( $prefix . $text . $inside, ENT_NOQUOTES ) . '</a>' . $trail; |
718 | 718 | } else { |
719 | 719 | wfProfileOut( __METHOD__ ); |
720 | 720 | return $this->linkKnown( $title, "$prefix$text$inside", array(), $query ) . $trail; |