You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Mladen Turk <ml...@mail.inet.hr> on 2001/08/09 19:19:29 UTC

[PATCH] mod_autoindex DescriptionWidth bug

Hi,

Playing with mod_autoindex found a small bug that limits DescriptionWidth to
the default 23 characters

Here is a patch:


--- mod_autoindex.c.old	Thu Aug  9 17:54:28 2001
+++ mod_autoindex.c	Thu Aug  9 19:12:06 2001
@@ -1628,7 +1628,7 @@
 		        ap_rvputs(r, "</td><td>",
                                   terminate_description(d, ar[x]->desc,
 						        autoindex_opts,
-                                                        name_width), NULL);
+                                                        desc_width), NULL);
 		}
 	    }
             else
@@ -1700,7 +1700,7 @@
 		if (ar[x]->desc) {
 		    ap_rputs(terminate_description(d, ar[x]->desc,
 						   autoindex_opts,
-                                                   name_width), r);
+                                                   desc_width), r);
 		}
 	    }
 	    ap_rputc('\n', r);




MT.