In the action lists on CGI pages, don't separate actions and their parameters with...
authorFabian Keil <fk@fabiankeil.de>
Thu, 29 Oct 2009 16:53:56 +0000 (16:53 +0000)
committerFabian Keil <fk@fabiankeil.de>
Thu, 29 Oct 2009 16:53:56 +0000 (16:53 +0000)
The action file parser doesn't actually allow this and will
throw an invalid syntax error if actions and parameters in
the action files are separated. Not adding the spaces means
copy and pasting CGI output into the action files works.

cgi.c

diff --git a/cgi.c b/cgi.c
index 526381f..93af14b 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-const char cgi_rcs[] = "$Id: cgi.c,v 1.124 2009/06/12 11:03:03 fabiankeil Exp $";
+const char cgi_rcs[] = "$Id: cgi.c,v 1.125 2009/06/14 14:37:08 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgi.c,v $
@@ -1362,7 +1362,7 @@ char *add_help_link(const char *item,
    string_join  (&result, string_toupper(item));
    string_append(&result, "\">");
    string_append(&result, item);
-   string_append(&result, "</a> ");
+   string_append(&result, "</a>");
 
    return result;
 }