1
0
mirror of https://github.com/lxsang/antd-cgi-plugin synced 2025-08-29 07:01:58 +02:00

Update cgi.c

This commit is contained in:
Xuan Sang LE
2021-03-23 20:17:31 +01:00
committed by GitHub
parent 8291aa4b60
commit b2caeaabd2

2
cgi.c
View File

@@ -196,8 +196,8 @@ static void get_env_vars(antd_request_t *rq, envar_arr_t *env_vars)
if (tmp)
{
add_vars(env_vars, "SCRIPT_NAME", tmp);
add_vars(env_vars, "SCRIPT_FILENAME", tmp);
tmp = __s("%s/%s", root, tmp);
add_vars(env_vars, "SCRIPT_FILENAME", tmp);
add_vars(env_vars, "PATH_TRANSLATED", tmp);
free(tmp);
}