httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r664330 - in /httpd/httpd/trunk: docs/manual/mod/mod_rewrite.xml modules/mappers/mod_rewrite.c
Date Sat, 07 Jun 2008 12:29:28 GMT
Author: rpluem
Date: Sat Jun  7 05:29:27 2008
New Revision: 664330

URL: http://svn.apache.org/viewvc?rev=664330&view=rev
Log:
* Allow HttpOnly, 1 and true to enable HttpOnly, allow secure, 1 and true
  to enable secure.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
    httpd/httpd/trunk/modules/mappers/mod_rewrite.c

Modified: httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml?rev=664330&r1=664329&r2=664330&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_rewrite.xml Sat Jun  7 05:29:27 2008
@@ -1259,8 +1259,8 @@
         cookie, such as '.apache.org', the optional <em>lifetime</em>
         is the lifetime of the cookie in minutes, and the optional 
         <em>path</em> is the path of the cookie. If <em>secure</em>
-        is set to 'true' or '1', the cookie is only transmitted via secured
-        connections. If <em>httponly</em> is set to 'true' or '1', the
+        is set to 'secure', 'true' or '1', the cookie is only transmitted via secured
+        connections. If <em>httponly</em> is set to 'HttpOnly', 'true' or '1',
the
         <code>HttpOnly</code> flag is used, making the cookie inaccessible
         to JavaScript code on browsers that support this feature.</dd>
 

Modified: httpd/httpd/trunk/modules/mappers/mod_rewrite.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mappers/mod_rewrite.c?rev=664330&r1=664329&r2=664330&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mappers/mod_rewrite.c (original)
+++ httpd/httpd/trunk/modules/mappers/mod_rewrite.c Sat Jun  7 05:29:27 2008
@@ -2493,10 +2493,14 @@
                                  expires ? "; expires=" : NULL,
                                  expires ? exp_time : NULL,
                                  (secure && (!strcasecmp(secure, "true")
-                                             || !strcasecmp(secure, "1"))) ?
+                                             || !strcmp(secure, "1")
+                                             || !strcasecmp(secure,
+                                                            "secure"))) ?
                                   "; secure" : NULL,
                                  (httponly && (!strcasecmp(httponly, "true")
-                                               || !strcasecmp(httponly, "1"))) ?
+                                               || !strcmp(httponly, "1")
+                                               || !strcasecmp(httponly,
+                                                              "HttpOnly"))) ?
                                   "; HttpOnly" : NULL,
                                  NULL);
 



Mime
View raw message