Commit eea1680c authored by Sergey Lyubka's avatar Sergey Lyubka

open_cgi_endpoint() strrchr fix

parent d5004cb7
...@@ -1811,7 +1811,8 @@ static const char cgi_status[] = "HTTP/1.1 200 OK\r\n"; ...@@ -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);
......
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