* (bug 12321) API list=blocks reveals private data
This commit is contained in:
parent
4e711d56e4
commit
a5ea966feb
2 changed files with 2 additions and 3 deletions
|
|
@ -360,6 +360,7 @@ Full API documentation is available at http://www.mediawiki.org/wiki/API
|
|||
* Standardized limits. Revisions and Deletedrevisions formerly using 200 / 10000,
|
||||
now 500 / 5000, in line with other modules.
|
||||
* Added list=allcategories module
|
||||
* (bug 12321) API list=blocks reveals private data
|
||||
|
||||
=== Languages updated in 1.12 ===
|
||||
|
||||
|
|
|
|||
|
|
@ -112,15 +112,13 @@ class ApiQueryBlocks extends ApiQueryBase {
|
|||
$block = array();
|
||||
if($fld_id)
|
||||
$block['id'] = $row->ipb_id;
|
||||
if($fld_user)
|
||||
if($fld_user && !$row->ipb_auto)
|
||||
{
|
||||
$block['user'] = $row->ipb_address;
|
||||
$block['userid'] = $row->ipb_user;
|
||||
}
|
||||
if($fld_by)
|
||||
{
|
||||
$block['by'] = $row->user_name;
|
||||
$block['byuserid'] = $row->ipb_by;
|
||||
}
|
||||
if($fld_timestamp)
|
||||
$block['timestamp'] = wfTimestamp(TS_ISO_8601, $row->ipb_timestamp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue