From 2ce97f4db8e85d1c8a6d15657fd20a12d8ce0cc7 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Wed, 8 Jan 2014 11:34:15 +0100 Subject: [PATCH] don't let uniqid() queries pass without key parameter --- arangod/Cluster/v8-cluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arangod/Cluster/v8-cluster.cpp b/arangod/Cluster/v8-cluster.cpp index 9a707dcf49..a69d1253c3 100644 --- a/arangod/Cluster/v8-cluster.cpp +++ b/arangod/Cluster/v8-cluster.cpp @@ -598,7 +598,7 @@ static v8::Handle JS_SetPrefixAgency (v8::Arguments const& argv) { static v8::Handle 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(, , )"); }