HomePhabricator

Verifies tokens from paraminfo

Authored by akashagarwal.

Description

Verifies tokens from paraminfo

Resolves the API warnings due to tokens which only concern global accounts.

Instead of hard coded variables TOKENS_[012] , now using the following:

For mwVersion < 1.20 gets the tokens from action=paraminfo&querymodules=info
For mwVersion < 1.24wmf19 and >= 1.20 from action=paraminfo&modules=tokens
For mwVersion > 1.24wmf19 from action=paraminfo&querymodules=tokens
and replacing those required and present in action=paraminfo&querymodules=info
or action=paraminfo&modules=tokens by 'csrf'

Bug: T72965
Bug: T85725
Change-Id: I3ff70dd8b9ee33fde15bd13d7af15db408aefc7d

Details

Committed
jayvdbMar 20 2015, 1:08 AM
Parents
rPWBC86c1ef1c160f: Merge "ParamInfo sub-module support"
Branches
Unknown
Tags
Unknown
ChangeId
I3ff70dd8b9ee33fde15bd13d7af15db408aefc7d