diff options
author | Gerald Carter <jerry@samba.org> | 2001-04-12 05:24:57 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2001-04-12 05:24:57 +0000 |
commit | 71ef4e018348df03bba429ebf4b323e35b773e86 (patch) | |
tree | 78c966eb8c5d12d1411d835abd5fc14a0dab8a09 /source3 | |
parent | 6578fd874283ee97c2896bcf7257db7f3e37c2ec (diff) | |
download | samba-71ef4e018348df03bba429ebf4b323e35b773e86.tar.gz samba-71ef4e018348df03bba429ebf4b323e35b773e86.tar.bz2 samba-71ef4e018348df03bba429ebf4b323e35b773e86.zip |
fix broken links in SWAT due to upper case anchors in the generated
HTML man pages. Spotted by Herb.
(This used to be commit be45c82c3ab3b626cd761f2cec3b160df2b7fcac)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/web/swat.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/web/swat.c b/source3/web/swat.c index f1a89f1913..0497eeb12a 100644 --- a/source3/web/swat.c +++ b/source3/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> %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")) |