On windows, enclosing path to CGI script in quotes to allow paths with spaces

This commit is contained in:
Sergey Lyubka committed 2013-07-17 08:24:52 +01:00
1 parent 7ca5962d2d
commit d864d72470
3 files changed
+17 -12

No files matched your search

+1 -1
View File
@@ -1341,7 +1341,7 @@ static pid_t spawn_process(struct mg_connection *conn, const char *prog,
}
GetFullPathNameA(dir, sizeof(full_dir), full_dir, NULL);
mg_snprintf(conn, cmdline, sizeof(cmdline), "%s%s%s\\%s",
mg_snprintf(conn, cmdline, sizeof(cmdline), "%s%s\"%s\\%s\"",
interp, interp[0] == '\0' ? "" : " ", full_dir, prog);
DEBUG_TRACE(("Running [%s]", cmdline));