16 lines
661 B
Plaintext
16 lines
661 B
Plaintext
$OpenBSD: patch-mod_frontpage_c,v 1.1 2003/06/18 22:52:59 fgsch Exp $
|
|
--- mod_frontpage.c.orig Wed Jun 18 19:49:24 2003
|
|
+++ mod_frontpage.c Wed Jun 18 19:50:32 2003
|
|
@@ -227,10 +227,7 @@ translate(request_rec *r) {
|
|
r->handler = FRONTPAGE_MAGIC_TYPE;
|
|
else if (strstr (vti, VTIHELP) != NULL)
|
|
r->handler = FRONTPAGE_MAGIC_TYPE;
|
|
- else if (strrchr (vti, '/') == 0) {
|
|
- if (strcmp(sub, "webadmin.css\0") == 0)
|
|
- r->handler = FRONTPAGE_MAGIC_TYPE;
|
|
- } else if ((sub = strrchr(vti,'.')) != NULL) {
|
|
+ else if ((sub = strrchr(vti,'.')) != NULL) {
|
|
if ((strcmp(sub, ".css\0") == 0)
|
|
|| (strcmp(sub, ".gif\0") == 0)
|
|
|| (strcmp(sub, ".js\0") == 0)
|