Index: trunk/extensions/CodeReview/ui/CodeRevisionAuthorLink.php |
— | — | @@ -34,7 +34,7 @@ |
35 | 35 | 'action' => $this->getTitle()->getLocalUrl(), |
36 | 36 | 'name' => 'uluser', 'id' => 'mw-codeauthor-form1' ) ); |
37 | 37 | |
38 | | - $form .= Html::hidden( 'linktoken', $wgUser->getToken() ); |
| 38 | + $form .= Html::hidden( 'linktoken', $wgUser->editToken('link') ); |
39 | 39 | $form .= Xml::openElement( 'fieldset' ); |
40 | 40 | |
41 | 41 | $additional = ''; |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | global $wgOut, $wgRequest, $wgUser; |
64 | 64 | // Link an author to a wiki user |
65 | 65 | |
66 | | - if ( $wgRequest->getVal( 'linktoken') != $wgUser->getToken() ) { |
| 66 | + if ( $wgUser->matchEditToken( $wgRequest->getVal( 'linktoken'), 'link' ) { |
67 | 67 | $wgOut->addWikiMsg( 'code-author-badtoken' ); |
68 | 68 | return; |
69 | 69 | } |