httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pque...@apache.org
Subject cvs commit: httpd-2.0/modules/generators mod_info.c
Date Sun, 05 Sep 2004 06:35:33 GMT
pquerna     2004/09/04 23:35:33

  Modified:    modules/generators mod_info.c
  Log:
  fix XHTML 1.0 Validation Errors.
  
  Revision  Changes    Path
  1.61      +9 -5      httpd-2.0/modules/generators/mod_info.c
  
  Index: mod_info.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/generators/mod_info.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- mod_info.c	5 Sep 2004 05:48:32 -0000	1.60
  +++ mod_info.c	5 Sep 2004 06:35:32 -0000	1.61
  @@ -321,7 +321,7 @@
       server_rec *serv = r->server;
       int max_daemons, forked, threaded;
   
  -    ap_rputs("<a name=\"server\"<h2>Server Settings</h2></a>", r);
  +    ap_rputs("<h2><a name=\"server\">Server Settings</a></h2>",
r);
       ap_rprintf(r,
                  "<dl><dt><strong>Server Version:</strong> "
                  "<font size=\"+1\"><tt>%s</tt></font></dt>\n",
  @@ -363,7 +363,8 @@
                  "<dt><strong>Config File:</strong> "
                  "<tt>%s</tt></dt>\n", ap_conftree->filename);
   
  -    ap_rputs("<dt><strong>Server Built With:</strong>\n<tt>\n<pre>",
r);
  +    ap_rputs("<dt><strong>Server Built With:</strong>\n"
  +             "<tt style=\"white-space: pre;\">\n", r);
   
       /* TODO: Not all of these are getting set like they do in main.c. 
        *       Missing some headers? 
  @@ -509,7 +510,7 @@
   #ifdef SERVER_CONFIG_FILE
       ap_rputs(" -D SERVER_CONFIG_FILE=\"" SERVER_CONFIG_FILE "\"\n", r);
   #endif
  -    ap_rputs("</pre></tt></dt>\n", r);
  +    ap_rputs("</tt></dt>\n", r);
       ap_rputs("</dl><hr />", r);
       return 0;
   }
  @@ -545,7 +546,7 @@
   static int show_hooks_settings(request_rec *r)
   {
       int i;
  -    ap_rputs("<a name=\"hooks\"><h2>Active Hooks</h2></a>\n<dl>",
r);
  +    ap_rputs("<h2><a name=\"hooks\">Active Hooks</a></h2>\n<dl>",
r);
   
       for (i = 0; request_hooks[i].name; i++) {
           ap_rprintf(r, "<dt><strong>%s:</strong>\n <br /><tt>\n",
  @@ -577,7 +578,10 @@
       ap_set_content_type(r, "text/html");
   
       ap_rputs(DOCTYPE_XHTML_1_0T
  -             "<html>\n <head>\n  <title>Server Information</title>\n
</head>\n",
  +             "<html xmlns=\"http://www.w3.org/1999/xhtml\">\n"
  +             "<head>\n"
  +             "  <title>Server Information</title>\n"
  +             "</head>\n",
                r);
       ap_rputs("<body><h1 style=\"text-align: center\">"
                "Apache Server Information</h1>\n", r);
  
  
  

Mime
View raw message