Skip to content

Commit

Permalink
Closes #1267
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed May 31, 2016
1 parent f69843d commit d301d8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kong/plugins/oauth2/daos.lua
Expand Up @@ -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
Expand Down

0 comments on commit d301d8b

Please sign in to comment.