ASF Bugzilla – Attachment 22528 Details for
Bug 44218
mod_autoindex shows the default icon for files with a content encoding, rather than the icon configured for the content type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Find the icon (item) by checking the directive value first
patch (text/plain), 1.37 KB, created by
rahul
on 2008-09-05 06:24:24 UTC
(
hide
)
Description:
Find the icon (item) by checking the directive value first
Filename:
MIME Type:
Creator:
rahul
Created:
2008-09-05 06:24:24 UTC
Size:
1.37 KB
patch
obsolete
>Index: modules/generators/mod_autoindex.c >=================================================================== >--- modules/generators/mod_autoindex.c (revision 692412) >+++ modules/generators/mod_autoindex.c (working copy) >@@ -773,21 +773,13 @@ > } > } > else if (!path_only) { >- if (!content_encoding) { >- if (p->type == BY_TYPE) { >- if (content_type >- && !ap_strcasecmp_match(content_type, >- p->apply_to)) { >- return p->data; >- } >+ if(p->type == BY_TYPE) { >+ if (content_type && !ap_strcasecmp_match(content_type, p->apply_to)) { >+ return p->data; > } >- } >- else { >- if (p->type == BY_ENCODING) { >- if (!ap_strcasecmp_match(content_encoding, >- p->apply_to)) { >- return p->data; >- } >+ } else if(p->type == BY_ENCODING) { >+ if (content_encoding && !ap_strcasecmp_match(content_encoding, p->apply_to)) { >+ return p->data; > } > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 44218
:
21379
|
21380
|
22528
|
22539