Page MenuHomePhabricator

bug21817.patch

Authored By
bzimport
Nov 21 2014, 10:51 PM
Size
580 B
Referenced Files
None
Subscribers
None

bug21817.patch

Index: ApiQueryUserContributions.php
===================================================================
--- ApiQueryUserContributions.php (revision 59951)
+++ ApiQueryUserContributions.php (working copy)
@@ -74,6 +74,8 @@
$this->usernames = array();
if(!is_array($this->params['user']))
$this->params['user'] = array($this->params['user']);
+ if( !count( $this->params['user'] ) )
+ $this->dieUsage( 'User parameter may not be empty', 'param_user' );
foreach($this->params['user'] as $u)
$this->prepareUsername($u);
$this->prefixMode = false;

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5694
Default Alt Text
bug21817.patch (580 B)

Event Timeline