mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-18 19:31:02 +00:00
On windows, enclosing path to CGI script in quotes to allow paths with spaces
This commit is contained in:
1 parent
7ca5962d2d
commit
d864d72470
3 files changed
+17
-12
No files matched your search
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user