projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d238a47
)
httpd: run interpreter for configured file extensions in any dir,
author
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 5 Mar 2007 19:24:33 +0000
(19:24 -0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Mon, 5 Mar 2007 19:24:33 +0000
(19:24 -0000)
not only in /cgi-bin/
networking/httpd.c
patch
|
blob
|
history
diff --git
a/networking/httpd.c
b/networking/httpd.c
index 8cf73c2b48d533e60265dab5c4382d99b52de2c7..cb8ab763f6e0d0f217049407bae73c4462900b25 100644
(file)
--- a/
networking/httpd.c
+++ b/
networking/httpd.c
@@
-1701,6
+1701,20
@@
static void handleIncoming(void)
sendCgi(url, prequest, length, cookie, content_type);
break;
}
+#if ENABLE_FEATURE_HTTPD_CONFIG_WITH_SCRIPT_INTERPR
+ {
+ char *suffix = strrchr(test, '.');
+ if (suffix) {
+ Htaccess *cur;
+ for (cur = config->script_i; cur; cur = cur->next) {
+ if (strcmp(cur->before_colon + 1, suffix) == 0) {
+ sendCgi(url, prequest, length, cookie, content_type);
+ goto bail_out;
+ }
+ }
+ }
+ }
+#endif
if (prequest != request_GET) {
sendHeaders(HTTP_NOT_IMPLEMENTED);
break;