Merge "Match salt of WatchAction::show() and getWatchToken()"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 9 Aug 2015 03:27:50 +0000 (03:27 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 9 Aug 2015 03:27:50 +0000 (03:27 +0000)
includes/actions/WatchAction.php

index 9647340..8b6e329 100644 (file)
@@ -64,7 +64,7 @@ class WatchAction extends FormAction {
                $this->checkCanExecute( $user );
 
                // Must have valid token for this action/title
-               $salt = array( $this->getName(), $this->getTitle()->getDBkey() );
+               $salt = array( $this->getName(), $this->getTitle()->getPrefixedDBkey() );
 
                if ( $user->matchEditToken( $this->getRequest()->getVal( 'token' ), $salt ) ) {
                        $this->onSubmit( array() );