-*- coding: utf-8 -*-
Changes with Apache 2.2.7
+ *) mod_autoindex: Generate valid XHTML output by adding the xhtml
+ namespace. PR 43649 [Jose Kahan <jose w3.org>]
+
*) mod_ldap: Give callers a reference to data copied into the request
pool instead of references directly into the cache
PR 43786 [Eric Covener]
niq says: done
jim: +1
- * mod_autoindex: Generate valid XHTML output by adding the xhtml namespace.
- Trunk version of patch:
- http://svn.apache.org/viewcvs.cgi?rev=593816&view=rev
- Backport version for 2.2.x of patch:
- Trunk version of patch works
- +1: rpluem, trawick, jim
-
* core: Avoid some unexpected connection closes by telling the client
that the connection is not persistent if the MPM process handling
the request is already exiting when the response header is built.
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);