Skip to content

Commit

Permalink
fix:obey session cookie even if http_referer is present
Browse files Browse the repository at this point in the history
  • Loading branch information
torsten-simon committed Jul 21, 2023
1 parent f18c361 commit 2d7dfd1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/php/modules/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ function addContentHeaders($src_file){
// start session to read object-data
if (!empty($_GET[$ESRENDER_SESSION_NAME])) {
$l_sid = $_GET[$ESRENDER_SESSION_NAME];
} else if(!empty($_COOKIE[$ESRENDER_SESSION_NAME])) {
$l_sid = $_COOKIE[$ESRENDER_SESSION_NAME];
} else if(!empty($_SERVER['HTTP_REFERER'])) {
$parts = parse_url($_SERVER['HTTP_REFERER']);
parse_str($parts['query'], $query);
Expand Down

0 comments on commit 2d7dfd1

Please sign in to comment.