ASF Bugzilla – Attachment 19304 Details for
Bug 41025
ROBOTS META-Tag directive needed in mod_autoindex
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Configurable HEAD contents
patch (text/plain), 1.56 KB, created by
Nick Kew
on 2006-12-25 08:59:10 UTC
(
hide
)
Description:
Configurable HEAD contents
Filename:
MIME Type:
Creator:
Nick Kew
Created:
2006-12-25 08:59:10 UTC
Size:
1.56 KB
patch
obsolete
>Index: mod_autoindex.c >=================================================================== >--- mod_autoindex.c (revision 489460) >+++ mod_autoindex.c (working copy) >@@ -119,6 +119,7 @@ > > char *default_icon; > char *style_sheet; >+ char *head_insert; > apr_int32_t opts; > apr_int32_t incremented_opts; > apr_int32_t decremented_opts; >@@ -165,6 +166,9 @@ > ap_rvputs(r, " <link rel=\"stylesheet\" href=\"", d->style_sheet, > "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL); > } >+ if (d->head_insert != NULL) { >+ ap_rputs(d->head_insert, r); >+ } > ap_rvputs(r, " </head>\n <body>\n", NULL); > } > >@@ -577,6 +581,9 @@ > AP_INIT_TAKE1("IndexStyleSheet", ap_set_string_slot, > (void *)APR_OFFSETOF(autoindex_config_rec, style_sheet), > DIR_CMD_PERMS, "URL to style sheet"), >+ AP_INIT_TAKE1("IndexHeadInsert", ap_set_string_slot, >+ (void *)APR_OFFSETOF(autoindex_config_rec, head_insert), >+ DIR_CMD_PERMS, "String to insert in HTML HEAD section"), > {NULL} > }; > >@@ -617,6 +624,8 @@ > : base->default_icon; > new->style_sheet = add->style_sheet ? add->style_sheet > : base->style_sheet; >+ new->head_insert = add->head_insert ? add->head_insert >+ : base->head_insert; > new->icon_height = add->icon_height ? add->icon_height : base->icon_height; > new->icon_width = add->icon_width ? add->icon_width : base->icon_width; >
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 41025
:
19165
| 19304