From b6cc58b9535d0d2da4b9ddda8398d7529e7a3f80 Mon Sep 17 00:00:00 2001 From: firebus Date: Sun, 2 Aug 2015 21:58:21 -0700 Subject: [PATCH] Match salt of WatchAction::show() and getWatchToken() Use getPrefixedDbkey() when generating salt, for consistency. Bug: T106910 Change-Id: I93e22a2aaee8bf888fa613929c1027f5f0c2642f --- includes/actions/WatchAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/actions/WatchAction.php b/includes/actions/WatchAction.php index 96473409da..8b6e329d07 100644 --- a/includes/actions/WatchAction.php +++ b/includes/actions/WatchAction.php @@ -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() ); -- 2.20.1