]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Remove extra semicolon when setting a cookie value.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 31 Aug 2011 04:57:29 +0000 (04:57 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Wed, 31 Aug 2011 04:57:29 +0000 (04:57 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@9946 7a7537e8-13f0-0310-91df-b6672ffda945

cgi-bin/var.c

index 616bf2b569dee37ec206fce88fdf0027c44af0e9..803677fe9a77b3437d0180becc8512888768e872 100644 (file)
@@ -452,19 +452,19 @@ cgiSetCookie(const char *name,            /* I - Name */
 
   printf("Set-Cookie: %s=%s;", name, value);
   if (path)
-    printf("; path=%s", path);
+    printf(" path=%s;", path);
   if (domain)
-    printf("; domain=%s", domain);
+    printf(" domain=%s;", domain);
   if (expires)
   {
     char       date[256];              /* Date string */
 
-    printf("; expires=%s", httpGetDateString2(expires, date, sizeof(date)));
+    printf(" expires=%s;", httpGetDateString2(expires, date, sizeof(date)));
   }
   if (secure)
-    puts("; secure;");
+    puts(" secure;");
   else
-    puts(";");
+    putchar('\n');
 }