We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5cdc47 commit 7fca698Copy full SHA for 7fca698
interface/lib/app.inc.php
@@ -356,8 +356,8 @@ private function get_cookie_domain() {
356
$forwarded_host = (isset($_SERVER['HTTP_X_FORWARDED_HOST']) ? $_SERVER['HTTP_X_FORWARDED_HOST'] : null );
357
if($forwarded_host !== null && $forwarded_host !== $cookie_domain) {
358
// 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);
+ $sql = "SELECT domain_id from web_domain where domain = ?";
+ $recs = $this->db->queryOneRecord($sql, $forwarded_host);
361
if($recs !== null) {
362
$cookie_domain = $forwarded_host;
363
}
0 commit comments