mirror of
https://github.com/openNDS/openNDS.git
synced 2026-05-04 03:01:32 -04:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user