Software /
code /
prosody-modules
Changeset
5244:fa7bd721a3f6
mod_http_oauth2: Fix validation of informative URIs
Iterating over wrong table
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 11 Mar 2023 22:58:47 +0100 |
parents | 5243:d5dc8edb2695 |
children | 5245:e22cae58141d |
files | mod_http_oauth2/mod_http_oauth2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_oauth2/mod_http_oauth2.lua Sat Mar 11 22:46:27 2023 +0100 +++ b/mod_http_oauth2/mod_http_oauth2.lua Sat Mar 11 22:58:47 2023 +0100 @@ -612,7 +612,7 @@ end end - for field, prop_schema in pairs(registration_schema) do + for field, prop_schema in pairs(registration_schema.properties) do if prop_schema.format == "uri" and client_metadata[field] then local components = url.parse(client_metadata[field]); if components.scheme ~= "https" then