Skip to content

Commit

Permalink
Merge pull request #1542 from RaspAP/sec/providers
Browse files Browse the repository at this point in the history
Sanitize country POST input
  • Loading branch information
billz committed Mar 8, 2024
2 parents eabd356 + d5009e0 commit 95f74c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 95f74c5

Please sign in to comment.