1
0
Fork 0

don't let uniqid() queries pass without key parameter

This commit is contained in:
Jan Steemann 2014-01-08 11:34:15 +01:00
parent 8070f9a04f
commit 2ce97f4db8
1 changed files with 1 additions and 1 deletions

View File

@ -598,7 +598,7 @@ static v8::Handle<v8::Value> JS_SetPrefixAgency (v8::Arguments const& argv) {
static v8::Handle<v8::Value> JS_UniqidAgency (v8::Arguments const& argv) {
v8::HandleScope scope;
if (argv.Length() > 3) {
if (argv.Length() < 1 || argv.Length() > 3) {
TRI_V8_EXCEPTION_USAGE(scope, "uniqid(<key>, <count>, <timeout>)");
}