Match salt of WatchAction::show() and getWatchToken()
authorfirebus <russ@firebus.com>
Mon, 3 Aug 2015 04:58:21 +0000 (21:58 -0700)
committerNemo bis <federicoleva@tiscali.it>
Sat, 8 Aug 2015 16:43:52 +0000 (16:43 +0000)
Use getPrefixedDbkey() when generating salt, for consistency.

Bug: T106910
Change-Id: I93e22a2aaee8bf888fa613929c1027f5f0c2642f

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() );