Mercurial > dovecot > core-2.2
changeset 21581:481c78da3b7a
mech-oauth2: Fix gs2-header parsing
author | Aki Tuomi <aki.tuomi@dovecot.fi> |
---|---|
date | Fri, 17 Feb 2017 15:44:17 +0200 |
parents | 0bab90689a7f |
children | 187450acf2d5 |
files | src/auth/mech-oauth2.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auth/mech-oauth2.c Sun Feb 19 00:36:39 2017 +0200 +++ b/src/auth/mech-oauth2.c Fri Feb 17 15:44:17 2017 +0200 @@ -178,7 +178,7 @@ } /* the first field is specified by RFC5801 as gs2-header */ - for(ptr = t_strsplit(fields[0], ","); *ptr != NULL; ptr++) { + for(ptr = t_strsplit_spaces(fields[0], ","); *ptr != NULL; ptr++) { switch(*ptr[0]) { case 'f': auth_request_log_info(request, AUTH_SUBSYS_MECH, @@ -207,6 +207,7 @@ "%s", error); } + break; default: auth_request_log_info(request, AUTH_SUBSYS_MECH, "Invalid gs2-header in request");