diff options
author | Yann Ylavic <ylavic@apache.org> | 2018-02-16 01:22:38 +0100 |
---|---|---|
committer | Yann Ylavic <ylavic@apache.org> | 2018-02-16 01:22:38 +0100 |
commit | bf85d9079e4198d6253917643da4892d8cfca667 (patch) | |
tree | 024f4ce59d53517556bb8b1afc9d343643352b0c /modules/session | |
parent | Follow up to r1821624: CHANGES entry. (diff) | |
download | apache2-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.c | 13 |
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; |