Index: trunk/extensions/EmailPage/EmailPage.php |
— | — | @@ -53,7 +53,7 @@ |
54 | 54 | function wfEmailPageToolboxLink() { |
55 | 55 | global $wgTitle, $wgUser, $wgEmailPageGroup; |
56 | 56 | if ( is_object( $wgTitle ) && ( empty($wgEmailPageGroup) || in_array( $wgEmailPageGroup, $wgUser->getEffectiveGroups() ) ) ) { |
57 | | - $url = Title::makeTitle( NS_SPECIAL, 'EmailPage' )->getLocalURL( 'ea-title='.$wgTitle->getPrefixedText() ); |
| 57 | + $url = htmlspecialchars( Title::makeTitle( NS_SPECIAL, 'EmailPage' )->getLocalURL( array('ea-title' => $wgTitle->getPrefixedText() ) ) ); |
58 | 58 | echo( "<li><a href=\"$url\">" . wfMsg( 'emailpage' ) . "</a></li>" ); |
59 | 59 | } |
60 | 60 | return true; |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | function wfEmailPageActionLink( $skin, &$actions ) { |
64 | 64 | global $wgTitle, $wgUser, $wgEmailPageGroup; |
65 | 65 | if ( is_object( $wgTitle ) && ( empty( $wgEmailPageGroup ) || in_array( $wgEmailPageGroup, $wgUser->getEffectiveGroups() ) ) ) { |
66 | | - $url = Title::makeTitle( NS_SPECIAL, 'EmailPage' )->getLocalURL('ea-title='.$wgTitle->getPrefixedText() ); |
| 66 | + $url = Title::makeTitle( NS_SPECIAL, 'EmailPage' )->getLocalURL( array('ea-title' => $wgTitle->getPrefixedText() ) ); |
67 | 67 | $actions['email'] = array( 'text' => wfMsg( 'email' ), 'class' => false, 'href' => $url ); |
68 | 68 | } |
69 | 69 | return true; |