# HG changeset patch # User Kim Alvefur # Date 1683315154 -7200 # Node ID a0333176303cc703d0625bb7d1a822d43a434d4f # Parent f2c7bb3af6002be67b816148ef4e252b071af5bd mod_http_oauth2: Fix error if no scopes requested granted_scopes would be nil but the later code expects an array diff -r f2c7bb3af600 -r a0333176303c mod_http_oauth2/mod_http_oauth2.lua --- a/mod_http_oauth2/mod_http_oauth2.lua Fri May 05 01:23:13 2023 +0200 +++ b/mod_http_oauth2/mod_http_oauth2.lua Fri May 05 21:32:34 2023 +0200 @@ -133,6 +133,8 @@ if requested_scope_string then -- Specific role(s) requested granted_scopes, requested_roles = split_scopes(parse_scopes(requested_scope_string)); + else + granted_scopes = array(); end local selected_role = select_role(username, requested_roles);