tony2001                Fri Jul  8 08:39:52 2005 EDT

  Modified files:              
    /php-src/ext/standard       head.c 
  Log:
  make use of T token
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/head.c?r1=1.79&r2=1.80&ty=u
Index: php-src/ext/standard/head.c
diff -u php-src/ext/standard/head.c:1.79 php-src/ext/standard/head.c:1.80
--- php-src/ext/standard/head.c:1.79    Fri Jul  8 08:30:24 2005
+++ php-src/ext/standard/head.c Fri Jul  8 08:39:51 2005
@@ -15,7 +15,7 @@
    | Author: Rasmus Lerdorf <[EMAIL PROTECTED]>                        |
    +----------------------------------------------------------------------+
  */
-/* $Id: head.c,v 1.79 2005/07/08 12:30:24 tony2001 Exp $ */
+/* $Id: head.c,v 1.80 2005/07/08 12:39:51 tony2001 Exp $ */
 
 #include <stdio.h>
 #include "php.h"
@@ -104,16 +104,15 @@
                 * pick an expiry date 1 year and 1 second in the past
                 */
                t = time(NULL) - 31536001;
-               dt = php_format_date("D, d-M-Y H:i:s", sizeof("D, d-M-Y 
H:i:s")-1, t, 0);
-               sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s GMT", name, 
dt);
+               dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, d-M-Y H:i:s 
T")-1, t, 0);
+               sprintf(cookie, "Set-Cookie: %s=deleted; expires=%s", name, dt);
                efree(dt);
        } else {
                sprintf(cookie, "Set-Cookie: %s=%s", name, value ? 
encoded_value : "");
                if (expires > 0) {
                        strcat(cookie, "; expires=");
-                       dt = php_format_date("D, d-M-Y H:i:s", sizeof("D, d-M-Y 
H:i:s")-1, t, 0);
+                       dt = php_format_date("D, d-M-Y H:i:s T", sizeof("D, 
d-M-Y H:i:s T")-1, t, 0);
                        strcat(cookie, dt);
-                       strcat(cookie, " GMT");
                        efree(dt);
                }
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to