From 7cac46a708fca2c9730a0e980facb34148546bc0 Mon Sep 17 00:00:00 2001 From: Chriztoffer Date: Thu, 6 Feb 2020 10:56:19 +0000 Subject: [PATCH] Revert "Do not pretty print JSON data" This reverts commit acd7bd242a18d35d8b622eb5e0d51b5b7fe2076d. --- lib/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/functions.php b/lib/functions.php index 306b0c1..db3f174 100755 --- a/lib/functions.php +++ b/lib/functions.php @@ -50,7 +50,7 @@ function trim_special_chars ($string) function writeBirdConfig ($roas) { - $json = json_encode($roas, JSON_UNESCAPED_SLASHES); + $json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT); $bird1_fq = fopen ('roa/bird_roa_dn42.conf', 'w'); $bird1_fq4 = fopen ('roa/bird4_roa_dn42.conf', 'w'); @@ -111,7 +111,7 @@ function writeBirdConfig ($roas) function writeRoutinatorExceptionFile ($roas) { - $json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK); + $json = json_encode($roas, JSON_UNESCAPED_SLASHES|JSON_PRETTY_PRINT|JSON_NUMERIC_CHECK); $fp = fopen('roa/export_rfc8416_dn42.json', 'w'); fwrite($fp, $json); fclose($fp);