commit f65ed01841f4603f861bed55224227501f56372b from: Omar Polo date: Fri Nov 06 17:02:41 2020 UTC [cgi] set QUERY_STRING only if there is a query string commit - 120381c93d65a860f38bc5e1541b1c00ff959124 commit + f65ed01841f4603f861bed55224227501f56372b blob - f71319a0b3bc474f5b44d04691a64f7bd6814680 blob + a5d43108fff381834af1f61b292ec12bbaa49819 --- gmid.c +++ gmid.c @@ -417,7 +417,8 @@ start_cgi(const char *path, const char *query, setenv("SERVER_PORT", "1965", 1); setenv("PATH_INFO", path, 1); setenv("PATH_TRANSLATED", expath, 1); - setenv("QUERY_STRING", query ? query : "", 1); + if (query != NULL) + setenv("QUERY_STRING", query, 1); setenv("REMOTE_ADDR", addr, 1); execvp(expath, argv);