Skip to content

Commit 32ade2e

Browse files
author
Andre Malo
committed
don't set the cookie in subrequests. This works around the
problem that cookies were set twice during fast internal redirects. PR: 13211 Reviewed by: Will Rowe, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@98943 13f79535-47bb-0310-9956-ffa450edef68
1 parent 07e0ed7 commit 32ade2e

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

CHANGES

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Changes with Apache 2.0.45
22

3+
*) mod_usertrack: don't set the cookie in subrequests. This works
4+
around the problem that cookies were set twice during fast internal
5+
redirects. PR 13211. [Andr� Malo]
6+
37
*) mod_autoindex no longer forgets output format and enabled version
48
sort in linked column headers. [Andr� Malo]
59

STATUS

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
APACHE 2.0 STATUS: -*-text-*-
2-
Last modified at [$Date: 2003/03/07 20:43:47 $]
2+
Last modified at [$Date: 2003/03/07 21:27:37 $]
33

44
Release:
55

@@ -213,12 +213,6 @@ PATCHES TO PORT FROM 2.1
213213
+1: ianh, wrowe, trawick
214214
0: nd (err, shouldn't it be DeflateCompressionLevel?)
215215

216-
* mod_usertrack: don't set the cookie in subrequests. This works
217-
around the problem that cookies were set twice during fast internal
218-
redirects. PR 13211.
219-
modules/metadata/mod_usertrack.c: r1.41
220-
+1: nd, wrowe, trawick
221-
222216
* Forward port: Escape special characters (especially control
223217
characters) in mod_log_config to make a clear distinction between
224218
client-supplied strings (with special characters) and server-side

modules/metadata/mod_usertrack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ static int spot_cookie(request_rec *r)
200200
const char *cookie;
201201
const char *value;
202202

203-
if (!dcfg->enabled) {
203+
/* Do not run in subrequests */
204+
if (!dcfg->enabled || r->main) {
204205
return DECLINED;
205206
}
206207

0 commit comments

Comments
 (0)