diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-02-14 03:54:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 03:54:33 +0100 |
commit | b5eaeed9b61ebdb01b3901c73b1fe261c97406eb (patch) | |
tree | 741cb3619f441d4a9bba3c3944a1fa0740d3c600 /scripts/localconfig-as-json | |
parent | 0f2022577ff142359413c2c10af219b399b3e12a (diff) | |
download | bugzilla-b5eaeed9b61ebdb01b3901c73b1fe261c97406eb.tar.gz bugzilla-b5eaeed9b61ebdb01b3901c73b1fe261c97406eb.tar.xz |
fix critic warnings from secbugstats (#397)
Diffstat (limited to 'scripts/localconfig-as-json')
-rwxr-xr-x | scripts/localconfig-as-json | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/localconfig-as-json b/scripts/localconfig-as-json index 329840ea5..f994e10c5 100755 --- a/scripts/localconfig-as-json +++ b/scripts/localconfig-as-json @@ -21,6 +21,12 @@ BEGIN { use Bugzilla; BEGIN { Bugzilla->extensions }; -use JSON::XS; +use JSON::MaybeXS; -print JSON::XS->new->canonical->utf8->ascii->encode(Bugzilla->localconfig);
\ No newline at end of file +my $json = JSON::MaybeXS->new( + canonical => 1, + utf8 => 1, + ascii => 1, +); + +print $json->encode(Bugzilla->localconfig); |