Rename "token" to "tok'

The recent removal of the "token" variable stopped the "$authtarget" directive from working. This fix renames "token" to "tok" in that directive.
This commit is contained in:
Chris Allen
2018-08-06 16:46:38 +01:00
committed by GitHub
parent 1bbec9ebea
commit 703494f080

View File

@@ -919,7 +919,7 @@ static int show_templated_page(struct MHD_Connection *connection, t_client *clie
sprintf(maxclients, "%d", config->maxclients);
safe_asprintf(&denyaction, "http://%s:%d/%s/", config->gw_address, config->gw_port, config->denydir);
safe_asprintf(&authaction, "http://%s:%d/%s/", config->gw_address, config->gw_port, config->authdir);
safe_asprintf(&authtarget, "http://%s:%d/%s/?token=%s&redir=%s", config->gw_address, config->gw_port, config->authdir, client->token, redirect_url);
safe_asprintf(&authtarget, "http://%s:%d/%s/?tok=%s&redir=%s", config->gw_address, config->gw_port, config->authdir, client->token, redirect_url);
safe_asprintf(&pagesdir, "/%s", config->pagesdir);
safe_asprintf(&imagesdir, "/%s", config->imagesdir);