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

modules/lua/lua_request.c

index 1e97fb54381fdc6ebccdc2f8fef06a658c4a1437..2968679b37c359d7cc6b576c271ec56ea5b21631 100644 (file)
@@ -2083,13 +2083,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 */