summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/web/swat.c7
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>&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"))