Security fixes XSS in oxidized-cfg-check.inc.php and print-customoid.php (#14126)

Signed-off-by: AL-KASSAR <feras.al-kassar@sap.com>
This commit is contained in:
Feras Al-Kassar
2022-07-20 19:45:42 +02:00
committed by GitHub
parent 98da97c816
commit e5c91a0f83
2 changed files with 2 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ if (isset($_POST['config'])) {
$oxidized_cfg = Yaml::parse($_POST['config']);
$validate_cfg = validate_oxidized_cfg($oxidized_cfg);
foreach ($validate_cfg as $error) {
$error = htmlspecialchars($error);
echo "<div class='alert alert-danger'>$error</div>";
}
if (empty($validate_cfg)) {