Commit 0f1a59ae authored by Sergey Lyubka's avatar Sergey Lyubka

Increased env buf size 4096 -> 8192. Passing TMPDIR to CGI.

parent a34d1ec0
...@@ -154,7 +154,7 @@ struct ll { struct ll *prev, *next; }; ...@@ -154,7 +154,7 @@ struct ll { struct ll *prev, *next; };
#define MAX_PATH_SIZE 8192 #define MAX_PATH_SIZE 8192
#define LUA_SCRIPT_PATTERN "**.lp$" #define LUA_SCRIPT_PATTERN "**.lp$"
#define DEFAULT_CGI_PATTERN "**.cgi$|**.pl$|**.php$" #define DEFAULT_CGI_PATTERN "**.cgi$|**.pl$|**.php$"
#define CGI_ENVIRONMENT_SIZE 4096 #define CGI_ENVIRONMENT_SIZE 8192
#define MAX_CGI_ENVIR_VARS 64 #define MAX_CGI_ENVIR_VARS 64
#define ENV_EXPORT_TO_CGI "MONGOOSE_CGI" #define ENV_EXPORT_TO_CGI "MONGOOSE_CGI"
#define PASSWORDS_FILE_NAME ".htpasswd" #define PASSWORDS_FILE_NAME ".htpasswd"
...@@ -1129,6 +1129,7 @@ static void prepare_cgi_environment(struct connection *conn, ...@@ -1129,6 +1129,7 @@ static void prepare_cgi_environment(struct connection *conn,
addenv2(blk, "PATH"); addenv2(blk, "PATH");
addenv2(blk, "TMP"); addenv2(blk, "TMP");
addenv2(blk, "TEMP"); addenv2(blk, "TEMP");
addenv2(blk, "TMPDIR");
addenv2(blk, "PERLLIB"); addenv2(blk, "PERLLIB");
addenv2(blk, ENV_EXPORT_TO_CGI); addenv2(blk, ENV_EXPORT_TO_CGI);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment