diff options
Diffstat (limited to 'components/authorize/src/authorize_keys.erl')
-rw-r--r-- | components/authorize/src/authorize_keys.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/authorize/src/authorize_keys.erl b/components/authorize/src/authorize_keys.erl index 593f69c..a7bf84a 100644 --- a/components/authorize/src/authorize_keys.erl +++ b/components/authorize/src/authorize_keys.erl @@ -360,6 +360,8 @@ match_svc_([H|T], [H|T1]) -> match_svc_(T, T1); match_svc_(["+"|T], [_|T1]) -> match_svc_(T, T1); +match_svc_([[]], _) -> + true; match_svc_([], _) -> true; match_svc_(_, _) -> @@ -681,7 +683,6 @@ abbrev_jwt({Hdr, Body} = X) -> abbrev_jwt(X) -> X. - abbrev_pl(#cred{} = Payload) -> list_to_tuple(lists:map(fun(B) when is_binary(B) -> abbrev_bin(B); ([{_,_}|_]=L) -> abbrev_payload(L); |