mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +00:00
open_cgi_endpoint() strrchr fix
This commit is contained in:
1 parent
d5004cb7eb
commit
eea1680cf9
1 file changed
+2
-1
+2
-1
@@ -1811,7 +1811,8 @@ static const char cgi_status[] = "HTTP/1.1 200 OK\r\n";
|
|||||||
|
|
||||||
static void open_cgi_endpoint(struct connection *conn, const char *prog) {
|
static void open_cgi_endpoint(struct connection *conn, const char *prog) {
|
||||||
struct cgi_env_block blk;
|
struct cgi_env_block blk;
|
||||||
char dir[MAX_PATH_SIZE], *p;
|
char dir[MAX_PATH_SIZE];
|
||||||
|
const char *p;
|
||||||
sock_t fds[2];
|
sock_t fds[2];
|
||||||
|
|
||||||
prepare_cgi_environment(conn, prog, &blk);
|
prepare_cgi_environment(conn, prog, &blk);
|
||||||
|
|||||||
Reference in new issue
Block a user