From be45c82c3ab3b626cd761f2cec3b160df2b7fcac Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Thu, 12 Apr 2001 05:24:57 +0000 Subject: [PATCH] fix broken links in SWAT due to upper case anchors in the generated HTML man pages. Spotted by Herb. --- source/web/swat.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/web/swat.c b/source/web/swat.c index f1a89f1913e..0497eeb12a2 100644 --- a/source/web/swat.c +++ b/source/web/swat.c @@ -161,13 +161,16 @@ static void show_parameter(int snum, struct parm_struct *parm) { int i; void *ptr = parm->ptr; + char* str; if (parm->class == P_LOCAL && snum >= 0) { ptr = lp_local_ptr(snum, ptr); } + str = stripspace(parm->label); + strupper (str); printf("Help       %s", - stripspace(parm->label), parm->label); + str, parm->label); switch (parm->type) { case P_CHAR: @@ -873,7 +876,7 @@ static void printers_page(void) printf("

Important Note:

\n"); printf("Printer names marked with [*] in the Choose Printer drop-down box "); printf("are autoloaded printers from "); - printf("Printcap Name.\n"); + printf("Printcap Name.\n"); printf("Attempting to delete these printers from SWAT will have no effect.\n"); if (cgi_variable("Advanced") && !cgi_variable("Basic")) -- 2.11.4.GIT