Merge pull request #157 from Thileepan/master

Environment variable required for PHP cgi
This commit is contained in:
Sergey Lyubka committed 2013-05-06 01:50:26 -07:00
commit 98b6c5e16a
1 file changed
+6
+6
View File
@@ -3142,6 +3142,12 @@ static void prepare_cgi_environment(struct mg_connection *conn,
if ((s = getenv("SystemDrive")) != NULL) {
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
if ((s = getenv("LD_LIBRARY_PATH")) != NULL)
addenv(blk, "LD_LIBRARY_PATH=%s", s);