Skip to content

Commit

Permalink
Sanitized the data read from the input by the debug bar to avoid secu…
Browse files Browse the repository at this point in the history
…rity problems.

------
Saneados los datos leídos del input por la barra de debug para evitar problemas de seguridad.
  • Loading branch information
NeoRazorX committed Apr 28, 2022
1 parent aa9f28c commit 298eb4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Base/Debug/DebugBar.php
@@ -1,7 +1,7 @@
<?php
/**
* This file is part of FacturaScripts
* Copyright (C) 2019-2021 Carlos Garcia Gomez <carlos@facturascripts.com>
* Copyright (C) 2019-2022 Carlos Garcia Gomez <carlos@facturascripts.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
Expand Down Expand Up @@ -127,7 +127,7 @@ private function addItemInputs(array &$items)
$label = '<i class="fas fa-keyboard"></i> ' . $type;
$data = [];
foreach ($rows as $key => $value) {
$data[] = [$key, $value];
$data[] = [htmlspecialchars($key), htmlspecialchars($value)];
}

$this->addItem($items, $label, $data, true);
Expand Down

0 comments on commit 298eb4b

Please sign in to comment.