Merge "Fix the (un)watch token to include the namespace name."
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sat, 16 Aug 2014 13:20:31 +0000 (13:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 16 Aug 2014 13:20:31 +0000 (13:20 +0000)
includes/actions/WatchAction.php

index 8d94bb3..8c9a46a 100644 (file)
@@ -178,7 +178,7 @@ class WatchAction extends FormAction {
                if ( $action != 'unwatch' ) {
                        $action = 'watch';
                }
-               $salt = array( $action, $title->getDBkey() );
+               $salt = array( $action, $title->getPrefixedDBkey() );
 
                // This token stronger salted and not compatible with ApiWatch
                // It's title/action specific because index.php is GET and API is POST