From d301d8b493d3087fb8ddf604f8d8418ab32097d3 Mon Sep 17 00:00:00 2001 From: thefosk Date: Mon, 30 May 2016 17:42:35 -0700 Subject: [PATCH] Closes #1267 --- kong/plugins/oauth2/daos.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kong/plugins/oauth2/daos.lua b/kong/plugins/oauth2/daos.lua index ad05ede6946..90e2a501277 100644 --- a/kong/plugins/oauth2/daos.lua +++ b/kong/plugins/oauth2/daos.lua @@ -11,6 +11,9 @@ end local function validate_uris(v, t, column) if v then + if #v < 1 then + return false, "at least one URI is required" + end for _, uri in ipairs(v) do local parsed_uri = url.parse(uri) if not (parsed_uri and parsed_uri.host and parsed_uri.scheme) then