refactor: UnraidCheck writeJsonFile JSON_UNESCAPED_SLASHES

This commit is contained in:
Zack Spear
2024-01-31 10:09:09 -08:00
committed by Zack Spear
parent 49d077db97
commit e18a8d670e

View File

@@ -236,7 +236,7 @@ class UnraidOsCheck
if (!is_dir(dirname($file))) { // prevents errors when directory doesn't exist
mkdir(dirname($file));
}
file_put_contents($file, json_encode($data, JSON_PRETTY_PRINT));
file_put_contents($file, json_encode($data, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
}
private function deleteJsonFile($file)