Commit 01a058d2 authored by Pavel Pimenov's avatar Pavel Pimenov

Remove file_stat_t st_cgi;

parent e6eca173
...@@ -2332,7 +2332,6 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf, ...@@ -2332,7 +2332,6 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf,
const char *rewrites = conn->server->config_options[URL_REWRITES]; const char *rewrites = conn->server->config_options[URL_REWRITES];
const char *root = conn->server->config_options[DOCUMENT_ROOT]; const char *root = conn->server->config_options[DOCUMENT_ROOT];
#ifndef MONGOOSE_NO_CGI #ifndef MONGOOSE_NO_CGI
file_stat_t st_cgi;
const char *cgi_pat = conn->server->config_options[CGI_PATTERN]; const char *cgi_pat = conn->server->config_options[CGI_PATTERN];
char *p; char *p;
#endif #endif
...@@ -2376,7 +2375,7 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf, ...@@ -2376,7 +2375,7 @@ static int convert_uri_to_file_name(struct connection *conn, char *buf,
if (*p == '/') { if (*p == '/') {
*p = '\0'; *p = '\0';
if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 && if (mg_match_prefix(cgi_pat, strlen(cgi_pat), buf) > 0 &&
!stat(buf, &st_cgi)) { !stat(buf, st)) {
DBG(("!!!! [%s]", buf)); DBG(("!!!! [%s]", buf));
*p = '/'; *p = '/';
conn->path_info = mg_strdup(p); conn->path_info = mg_strdup(p);
......
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