Escape in correct places to avoid double escaping sometimes
This commit is contained in:
@@ -422,10 +422,10 @@ class ConfigFile
|
|||||||
}
|
}
|
||||||
$verbose = $this->get("Servers/$id/verbose");
|
$verbose = $this->get("Servers/$id/verbose");
|
||||||
if (!empty($verbose)) {
|
if (!empty($verbose)) {
|
||||||
return htmlspecialchars($verbose);
|
return $verbose;
|
||||||
}
|
}
|
||||||
$host = $this->get("Servers/$id/host");
|
$host = $this->get("Servers/$id/host");
|
||||||
return empty($host) ? 'localhost' : htmlspecialchars($host);
|
return empty($host) ? 'localhost' : $host;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -279,6 +279,7 @@ function perform_config_checks()
|
|||||||
if ($server_name == 'localhost') {
|
if ($server_name == 'localhost') {
|
||||||
$server_name .= " [$i]";
|
$server_name .= " [$i]";
|
||||||
}
|
}
|
||||||
|
$server_name = htmlspecialchars($server_name);
|
||||||
|
|
||||||
if ($cookie_auth_server && $blowfish_secret === null) {
|
if ($cookie_auth_server && $blowfish_secret === null) {
|
||||||
$blowfish_secret = uniqid('', true);
|
$blowfish_secret = uniqid('', true);
|
||||||
|
Reference in New Issue
Block a user