mirror of
https://github.com/unraid/api.git
synced 2026-05-01 04:31:31 -05:00
refactor: UnraidCheck writeJsonFile JSON_UNESCAPED_SLASHES
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user