diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-10 21:27:39 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-09-10 21:27:39 +0200 |
commit | 56573cb4f7393fdb320660a5c258c72688a74f64 (patch) | |
tree | 700267083c53b17477ecc135434fe179b307f8a6 /networking/httpd_ssi.c | |
parent | db4a67628d4e4418d01bbba1c8603a6ca8c3562e (diff) | |
download | busybox-w32-56573cb4f7393fdb320660a5c258c72688a74f64.tar.gz busybox-w32-56573cb4f7393fdb320660a5c258c72688a74f64.tar.bz2 busybox-w32-56573cb4f7393fdb320660a5c258c72688a74f64.zip |
networking/httpd_ssi.c: expand comments
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/httpd_ssi.c')
-rw-r--r-- | networking/httpd_ssi.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/networking/httpd_ssi.c b/networking/httpd_ssi.c index f75805923..86f341fbd 100644 --- a/networking/httpd_ssi.c +++ b/networking/httpd_ssi.c | |||
@@ -7,6 +7,11 @@ | |||
7 | /* | 7 | /* |
8 | * This program is a CGI application. It processes server-side includes: | 8 | * This program is a CGI application. It processes server-side includes: |
9 | * <!--#include file="file.html" --> | 9 | * <!--#include file="file.html" --> |
10 | * | ||
11 | * Usage: put these lines in httpd.conf: | ||
12 | * | ||
13 | * *.html:/bin/httpd_ssi | ||
14 | * *.htm:/bin/httpd_ssi | ||
10 | */ | 15 | */ |
11 | 16 | ||
12 | /* Build a-la | 17 | /* Build a-la |
@@ -65,9 +70,10 @@ static void process_includes(const char *filename) | |||
65 | continue; | 70 | continue; |
66 | } | 71 | } |
67 | *closing_dq = '\0'; | 72 | *closing_dq = '\0'; |
68 | /* FIXME: (1) are relative paths ok? | 73 | /* FIXME: |
74 | * (1) are relative paths with /../ etc ok? | ||
69 | * (2) if we include a/1.htm and it includes b/2.htm, | 75 | * (2) if we include a/1.htm and it includes b/2.htm, |
70 | * do we need to insert a/b/2.htm or b/2.htm? | 76 | * do we need to include a/b/2.htm or b/2.htm? |
71 | * IOW, do we need to "cd $dirname"? | 77 | * IOW, do we need to "cd $dirname"? |
72 | */ | 78 | */ |
73 | process_includes(line + sizeof(INCLUDE)-1); | 79 | process_includes(line + sizeof(INCLUDE)-1); |