Skip to content

Commit 7fca698

Browse files
author
Marius Burkard
committed
- fixes #5541
1 parent a5cdc47 commit 7fca698

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/lib/app.inc.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ private function get_cookie_domain() {
356356
$forwarded_host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : null );
357357
if($forwarded_host !== null && $forwarded_host !== $cookie_domain) {
358358
// Just check for complete domain name and not auto subdomains
359-
$sql = "SELECT domain_id from web_domain where domain = '$forwarded_host'";
360-
$recs = $this->db->queryOneRecord($sql);
359+
$sql = "SELECT domain_id from web_domain where domain = ?";
360+
$recs = $this->db->queryOneRecord($sql, $forwarded_host);
361361
if($recs !== null) {
362362
$cookie_domain = $forwarded_host;
363363
}

0 commit comments

Comments
 (0)