[security] Self-XSS in setup (host parameter), see PMASA-2011-19
This commit is contained in:

committed by
Marc Delisle

parent
bd3735ba58
commit
0e707906e6
@@ -425,7 +425,7 @@ class ConfigFile
|
||||
return htmlspecialchars($verbose);
|
||||
}
|
||||
$host = $this->get("Servers/$id/host");
|
||||
return empty($host) ? 'localhost' : $host;
|
||||
return empty($host) ? 'localhost' : htmlspecialchars($host);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user