* Corrected html code in redirection debian_cgilib_0-4 debian_cgilib_0-4-1 debian_cgilib_0-4-2
authorJoey Schulze <joey@infodrom.org>
Fri, 20 Mar 1998 08:21:32 +0000 (08:21 +0000)
committerJoey Schulze <joey@infodrom.org>
Fri, 20 Mar 1998 08:21:32 +0000 (08:21 +0000)
  * Corrected number of bytes in redirection

cgi.c

diff --git a/cgi.c b/cgi.c
index 103f89a..3565a6a 100644 (file)
--- a/cgi.c
+++ b/cgi.c
@@ -244,10 +244,10 @@ char *cgiGetValue(s_cgi **parms, const char *var)
 void cgiRedirect (const char *url)
 {
     if (url && strlen(url)) {
-       printf ("Content-type: text/html\nContent-length: %d\n", 78+(strlen(url)*2));
+       printf ("Content-type: text/html\nContent-length: %d\n", 77+(strlen(url)*2));
        printf ("Status: 302 Temporal Relocation\n");
        printf ("Location: %s\n\n", url);
-       printf ("<html>\n<body>\nThe page has been moved to <a href\"%s\">%s</a>\n</body>\n</html>\n", url, url);
+       printf ("<html>\n<body>\nThe page has been moved to <a href=\"%s\">%s</a>\n</body>\n</html>\n", url, url);
     }
 }