Skip to content
Snippets Groups Projects
Commit 7fca6989 authored by Marius Burkard's avatar Marius Burkard
Browse files

- fixes #5541

parent a5cdc475
No related branches found
No related tags found
No related merge requests found
...@@ -356,8 +356,8 @@ class app { ...@@ -356,8 +356,8 @@ class app {
$forwarded_host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : null ); $forwarded_host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : null );
if($forwarded_host !== null && $forwarded_host !== $cookie_domain) { if($forwarded_host !== null && $forwarded_host !== $cookie_domain) {
// Just check for complete domain name and not auto subdomains // Just check for complete domain name and not auto subdomains
$sql = "SELECT domain_id from web_domain where domain = '$forwarded_host'"; $sql = "SELECT domain_id from web_domain where domain = ?";
$recs = $this->db->queryOneRecord($sql); $recs = $this->db->queryOneRecord($sql, $forwarded_host);
if($recs !== null) { if($recs !== null) {
$cookie_domain = $forwarded_host; $cookie_domain = $forwarded_host;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment