mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Merge pull request #1542 from RaspAP/sec/providers
Sanitize country POST input
This commit is contained in:
commit
95f74c560e
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ function DisplayProviderConfig()
|
|||
if (!RASPI_MONITOR_ENABLED) {
|
||||
if (isset($_POST['SaveProviderSettings'])) {
|
||||
if (isset($_POST['country'])) {
|
||||
$country = trim($_POST['country']);
|
||||
$country = escapeshellarg(trim($_POST['country']));
|
||||
if (strlen($country) == 0) {
|
||||
$status->addMessage('Select a country from the server location list', 'danger');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue