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); }