diff --git a/common.php b/common.php index 8f7bcd4..aead3d2 100644 --- a/common.php +++ b/common.php @@ -180,6 +180,7 @@ } $json = file_get_contents($path . $file); + $json = str_replace(["\n\r", "\r", "\n"], "", $json); $json = str_replace("|*/?>","",str_replace(""; + $data = ""; $write = fopen($path . $file, 'w') or die("can't open file ".$path.$file); fwrite($write, $data); fclose($write);