summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2001-04-12 05:24:57 +0000
committerGerald Carter <jerry@samba.org>2001-04-12 05:24:57 +0000
commitbe45c82c3ab3b626cd761f2cec3b160df2b7fcac (patch)
tree3e3b1d63ed6efd1129ba4b1c88038eb164afd063
parent9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2 (diff)
downloadsamba-be45c82c3ab3b626cd761f2cec3b160df2b7fcac.tar.gz
samba-be45c82c3ab3b626cd761f2cec3b160df2b7fcac.tar.xz
samba-be45c82c3ab3b626cd761f2cec3b160df2b7fcac.zip
fix broken links in SWAT due to upper case anchors in the generated
HTML man pages. Spotted by Herb.
-rw-r--r--source/web/swat.c7
1 files 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("<tr><td><A HREF=\"/swat/help/smb.conf.5.html#%s\" target=\"docs\">Help</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; %s</td><td>",
- stripspace(parm->label), parm->label);
+ str, parm->label);
switch (parm->type) {
case P_CHAR:
@@ -873,7 +876,7 @@ static void printers_page(void)
printf("<H3>Important Note:</H3>\n");
printf("Printer names marked with [*] in the Choose Printer drop-down box ");
printf("are autoloaded printers from ");
- printf("<A HREF=\"/swat/help/smb.conf.5.html#printcapname\" target=\"docs\">Printcap Name</A>.\n");
+ printf("<A HREF=\"/swat/help/smb.conf.5.html#PRINTCAPNAME\" target=\"docs\">Printcap Name</A>.\n");
printf("Attempting to delete these printers from SWAT will have no effect.\n");
if (cgi_variable("Advanced") && !cgi_variable("Basic"))