From b2caeaabd23dd6ca420f2124bd3c177956db9279 Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Tue, 23 Mar 2021 20:17:31 +0100 Subject: [PATCH] Update cgi.c --- cgi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi.c b/cgi.c index 7abeb00..82a84d2 100644 --- a/cgi.c +++ b/cgi.c @@ -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); }