Detect in memory corruption of templates.json

This commit is contained in:
Squidly271 2022-04-15 11:05:32 -04:00
parent 2a6caa8b71
commit f83a171629
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -2,7 +2,7 @@
4e55f7483b661af21a25b677179baffe ./CA_notices.page
42a1658a916a3a3eed2a9f2af80603c4 ./ca_settings.page
e718d7825dbdc96a17a915079222b098 ./default.cfg
6140ef0839cc05514334d8eae114b722 ./include/exec.php
e59ac0ddbf8ac8ab8f7f15866aa1e4f0 ./include/exec.php
a31856c2249edbc6c396b6f62540504c ./include/helpers.php
d9b0dc98ee598d44633341ac199a43e0 ./include/paths.php
532fffdf939594c143e679da02bd841e ./javascript/libraries.js

View File

@ -910,7 +910,7 @@ function force_update() {
@unlink($caPaths['community-templates-info']);
}
if (!file_exists($caPaths['community-templates-info'])) {
if (!file_exists($caPaths['community-templates-info']) || !readJsonFile($caPaths['community-templates-info'])) {
$updatedSyncFlag = true;
if (! DownloadApplicationFeed() ) {
$o['script'] = "$('.onlyShowWithFeed').hide();";