Skip to content

Commit 65d6860

Browse files
committed
remove superfluous check on return_to in oidc_refresh_token_request
Signed-off-by: Hans Zandbelt <[email protected]>
1 parent 3e7c351 commit 65d6860

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/handle/refresh.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -377,10 +377,9 @@ int oidc_refresh_token_request(request_rec *r, oidc_cfg_t *c, oidc_session_t *se
377377

378378
/* pass optional error message to the return URL */
379379
if (error_code != NULL)
380-
return_to =
381-
apr_psprintf(r->pool, "%s%serror_code=%s", return_to,
382-
strchr(return_to ? return_to : "", OIDC_CHAR_QUERY) ? OIDC_STR_AMP : OIDC_STR_QUERY,
383-
oidc_http_url_encode(r, error_code));
380+
return_to = apr_psprintf(r->pool, "%s%serror_code=%s", return_to,
381+
strchr(return_to, OIDC_CHAR_QUERY) ? OIDC_STR_AMP : OIDC_STR_QUERY,
382+
oidc_http_url_encode(r, error_code));
384383

385384
/* add the redirect location header */
386385
oidc_http_hdr_out_location_set(r, return_to);

0 commit comments

Comments
 (0)