Use absolute URLs in the client-tag forms
authorFabian Keil <fk@fabiankeil.de>
Mon, 20 Feb 2017 13:45:14 +0000 (13:45 +0000)
committerFabian Keil <fk@fabiankeil.de>
Mon, 20 Feb 2017 13:45:14 +0000 (13:45 +0000)
It's more consistent with the rest of the CGI page
URLs and makes it more convenient to copy the forms
to external pages.

cgisimple.c

index 8815fcb..c2983e3 100644 (file)
@@ -1,4 +1,4 @@
-const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.144 2017/01/23 13:04:57 fabiankeil Exp $";
+const char cgisimple_rcs[] = "$Id: cgisimple.c,v 1.145 2017/01/23 13:05:12 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/cgisimple.c,v $
@@ -310,7 +310,7 @@ static void cgi_create_client_tag_form(char *form, size_t size,
    }
 
    snprintf(form, size,
-      "<form method=\"GET\" action=\"toggle-client-tag\" style=\"display: inline\">\n"
+      "<form method=\"GET\" action=\""CGI_PREFIX"toggle-client-tag\" style=\"display: inline\">\n"
       " <input type=\"hidden\" name=\"tag\" value=\"%s\">\n"
       " <input type=\"hidden\" name=\"toggle-state\" value=\"%u\">\n"
       " <input type=\"hidden\" name=\"expires\" value=\"%u\">\n"