]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix critic warnings from secbugstats (#397)
authorDylan William Hardison <dylan@hardison.net>
Wed, 14 Feb 2018 02:54:33 +0000 (21:54 -0500)
committerGitHub <noreply@github.com>
Wed, 14 Feb 2018 02:54:33 +0000 (21:54 -0500)
scripts/localconfig-as-json

index 329840ea57ed3b8687fd2b1b73ff7fb7311e7036..f994e10c5fcbbbc0dc9bc74fecaba0915d73f08e 100755 (executable)
@@ -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);