Commit 98b6c5e1 authored by Sergey Lyubka's avatar Sergey Lyubka

Merge pull request #157 from Thileepan/master

Environment variable required for PHP cgi
parents 2a0b55b3 1d9d1111
...@@ -3142,6 +3142,12 @@ static void prepare_cgi_environment(struct mg_connection *conn, ...@@ -3142,6 +3142,12 @@ static void prepare_cgi_environment(struct mg_connection *conn,
if ((s = getenv("SystemDrive")) != NULL) { if ((s = getenv("SystemDrive")) != NULL) {
addenv(blk, "SystemDrive=%s", s); addenv(blk, "SystemDrive=%s", s);
} }
if ((s = getenv("ProgramFiles")) != NULL) {
addenv(blk, "ProgramFiles=%s", s);
}
if ((s = getenv("ProgramFiles(x86)")) != NULL) {
addenv(blk, "ProgramFiles(x86)=%s", s);
}
#else #else
if ((s = getenv("LD_LIBRARY_PATH")) != NULL) if ((s = getenv("LD_LIBRARY_PATH")) != NULL)
addenv(blk, "LD_LIBRARY_PATH=%s", s); addenv(blk, "LD_LIBRARY_PATH=%s", s);
......
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