From: Joe Orton Date: Fri, 5 Jun 2026 09:45:07 +0000 (+0000) Subject: * modules/generators/mod_autoindex.c (add_header): Reject invalid X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=83091c327b41c18aa1eea36f294d95e9f38bd9b8;p=thirdparty%2Fapache%2Fhttpd.git * modules/generators/mod_autoindex.c (add_header): Reject invalid NameWidth values less than 5, including zero. Submitted by: metsw24-max GitHub: closes #617 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1935002 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/generators/mod_autoindex.c b/modules/generators/mod_autoindex.c index 2230338ea9..602b2e51ce 100644 --- a/modules/generators/mod_autoindex.c +++ b/modules/generators/mod_autoindex.c @@ -462,8 +462,8 @@ static const char *add_opts(cmd_parms *cmd, void *d, int argc, char *const argv[ else { int width = atoi(&w[10]); - if (width && (width < 5)) { - return "NameWidth value must be greater than 5"; + if (width < 5) { + return "NameWidth value must be at least 5"; } d_cfg->name_width = width; d_cfg->name_adjust = K_NOADJUST;