]> granicus.if.org Git - apache/commitdiff
backport for mod_lua: Don't quote values in cookies; Make IE happy again [#56734]
authorDaniel Gruno <humbedooh@apache.org>
Fri, 18 Jul 2014 18:15:42 +0000 (18:15 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 18 Jul 2014 18:15:42 +0000 (18:15 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1611744 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/lua/lua_request.c

diff --git a/CHANGES b/CHANGES
index 278bb239e0696d2f62045700b31ffd131229581e..23b28820c918e7b7f259ea39cc7c14adacb571aa 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,8 @@
 
 Changes with Apache 2.4.11
 
+  *) mod_lua: Don't quote Expires and Path values. PR 56734.
+     [Keith Mashinter, <kmashint yahoo com>]
 
 Changes with Apache 2.4.10
 
index 8b740c227f1495d8c4463d93e958b3ff149c50fa..136e998d9de666e78fbd354fa03938663b44196b 100644 (file)
@@ -2086,13 +2086,13 @@ static int lua_set_cookie(lua_State *L)
     if (expires > 0) {
         rv = apr_rfc822_date(cdate, apr_time_from_sec(expires));
         if (rv == APR_SUCCESS) {
-            strexpires = apr_psprintf(r->pool, "Expires=\"%s\";", cdate);
+            strexpires = apr_psprintf(r->pool, "Expires=%s;", cdate);
         }
     }
     
     /* Create path segment */
     if (path != NULL && strlen(path) > 0) {
-        strpath = apr_psprintf(r->pool, "Path=\"%s\";", path);
+        strpath = apr_psprintf(r->pool, "Path=%s;", path);
     }
     
     /* Create domain segment */