*/
$wgAPIModules = array();
+/**
+ * Minimum length of list=usercontribs's ucuserprefix parameter
+ * Setting this to a low value can open DOS windows on large wikis
+ */
+$wgAPIUCUserPrefixMinLength = 3;
+
/**
* Parser test suite files to be run by parserTests.php when no specific
* filename is passed to it.
if(isset($this->params['userprefix']))
{
+ global $wgAPIUCUserPrefixMinLength;
+ if(strlen($this->params['userprefix']) < $wgAPIUCUserPrefixMinLength)
+ $this->dieUsage("User prefixes must be at least $wgAPIUCUserPrefixMinLength characters", 'userprefix-tooshort');
+
$this->prefixMode = true;
$this->userprefix = $this->params['userprefix'];
}