Fix to call JSON after WebminCore

This commit is contained in:
iliajie
2022-11-16 22:54:56 +02:00
parent a294083e12
commit 8de2847fe5
2 changed files with 1 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
BEGIN { push(@INC, ".."); };
use WebminCore;
use JSON::PP;
&init_config();
use Time::Local;
if (&foreign_check("node-groups")) {

View File

@@ -5,8 +5,6 @@ $trust_unknown_referers = 1;
require './bacula-backup-lib.pl';
&ReadParse();
use JSON::PP;
# Input sanitization
die "Illegal input" if ($in{'job'} and $in{'job'} !~ /^\d+\z/);