Skip to content

Commit

Permalink
validation type
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Iverson committed Dec 26, 2019
1 parent 73b014c commit 7c2d9f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mailscanner/geoip_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

html_start(__('geoipupdate15'), 0, false, false);

if (!defined('MAXMIND_LICENSE_KEY') || !validateInput(MAXMIND_LICENSE_KEY)) {
if (!defined('MAXMIND_LICENSE_KEY') || !validateInput(MAXMIND_LICENSE_KEY, "maxmind")) {
$error_message = __('geoipnokey15') . '<br>' . "\n";
die($error_message);
} elseif (!isset($_POST['run'])) {
Expand Down
2 changes: 1 addition & 1 deletion tools/Cron_jobs/mailwatch_geoip_update.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
require $pathToFunctions;

if (!defined('MAXMIND_LICENSE_KEY') || !validateInput(MAXMIND_LICENSE_KEY)) {
if (!defined('MAXMIND_LICENSE_KEY') || !validateInput(MAXMIND_LICENSE_KEY, "maxmind")) {
$error_message = __('geoipnokey15') . "\n\n";
die($error_message);
}
Expand Down

0 comments on commit 7c2d9f3

Please sign in to comment.