summaryrefslogtreecommitdiffstats
path: root/modules/session
diff options
context:
space:
mode:
authorYann Ylavic <ylavic@apache.org>2018-02-16 01:22:38 +0100
committerYann Ylavic <ylavic@apache.org>2018-02-16 01:22:38 +0100
commitbf85d9079e4198d6253917643da4892d8cfca667 (patch)
tree024f4ce59d53517556bb8b1afc9d343643352b0c /modules/session
parentFollow up to r1821624: CHANGES entry. (diff)
downloadapache2-bf85d9079e4198d6253917643da4892d8cfca667.tar.xz
apache2-bf85d9079e4198d6253917643da4892d8cfca667.zip
mod_session: Strip Session header when SessionEnv is on.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1824390 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r--modules/session/mod_session.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/session/mod_session.c b/modules/session/mod_session.c
index c573f981a7..10e6396a29 100644
--- a/modules/session/mod_session.c
+++ b/modules/session/mod_session.c
@@ -522,12 +522,15 @@ static int session_fixups(request_rec * r)
*/
ap_session_load(r, &z);
- if (z && conf->env) {
- session_identity_encode(r, z);
- if (z->encoded) {
- apr_table_set(r->subprocess_env, HTTP_SESSION, z->encoded);
- z->encoded = NULL;
+ if (conf->env) {
+ if (z) {
+ session_identity_encode(r, z);
+ if (z->encoded) {
+ apr_table_set(r->subprocess_env, HTTP_SESSION, z->encoded);
+ z->encoded = NULL;
+ }
}
+ apr_table_unset(r->headers_in, "Session");
}
return OK;