projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mimetypes: add json and jsonp (distinct from js)
[project/uhttpd.git]
/
cgi.c
diff --git
a/cgi.c
b/cgi.c
index
7b47e7d
..
a2a7e50
100644
(file)
--- a/
cgi.c
+++ b/
cgi.c
@@
-17,6
+17,7
@@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#define _GNU_SOURCE
#include <libubox/blobmsg.h>
#include "uhttpd.h"
#include <libubox/blobmsg.h>
#include "uhttpd.h"
@@
-103,10
+104,11
@@
static bool check_cgi_path(struct path_info *pi, const char *url)
}
pi->ip = NULL;
}
pi->ip = NULL;
- return uh_path_match(conf.cgi_
prefix, url
);
+ return uh_path_match(conf.cgi_
docroot_path, pi->phys
);
}
struct dispatch_handler cgi_dispatch = {
}
struct dispatch_handler cgi_dispatch = {
+ .script = true,
.check_path = check_cgi_path,
.handle_request = cgi_handle_request,
};
.check_path = check_cgi_path,
.handle_request = cgi_handle_request,
};