ASF Bugzilla – Attachment 21004 Details for
Bug 43649
mod_autoindex is generating invalid XHTML markup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
mod_autoindex was not adding the xhtml namespace
mod_autoindex_valid_xhtml.trunk.diff (text/plain), 1011 bytes, created by
Jose Kahan
on 2007-10-18 08:12:56 UTC
(
hide
)
Description:
mod_autoindex was not adding the xhtml namespace
Filename:
MIME Type:
Creator:
Jose Kahan
Created:
2007-10-18 08:12:56 UTC
Size:
1011 bytes
patch
obsolete
>Index: mod_autoindex.c >=================================================================== >--- mod_autoindex.c (revision 585978) >+++ mod_autoindex.c (working copy) >@@ -160,9 +160,18 @@ > d = (autoindex_config_rec *) ap_get_module_config(r->per_dir_config, > &autoindex_module); > >- ap_rvputs(r, xhtml ? DOCTYPE_XHTML_1_0T : DOCTYPE_HTML_3_2, >- "<html>\n <head>\n <title>Index of ", title, >- "</title>\n", NULL); >+ if (xhtml) { >+ ap_rvputs(r, DOCTYPE_XHTML_1_0T, >+ "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n" >+ "<head>\n <title>Index of ", title, >+ "</title>\n", NULL); >+ } else { >+ ap_rvputs(r, DOCTYPE_HTML_3_2, >+ "<html>\n <head>\n" >+ "<title>Index of ", title, >+ "</title>\n", NULL); >+ } >+ > if (d->style_sheet != NULL) { > ap_rvputs(r, " <link rel=\"stylesheet\" href=\"", d->style_sheet, > "\" type=\"text/css\"", xhtml ? " />\n" : ">\n", NULL);
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 43649
:
21003
| 21004