From 42f349dd432bba2bd50a18046fb658bdce1027dc Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Fri, 2 Oct 2020 12:25:13 +0000 Subject: [PATCH] fix #3930 @0.25 --- inc/ws/Controlleur/class.ws.services.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/ws/Controlleur/class.ws.services.php b/inc/ws/Controlleur/class.ws.services.php index d16373673..f240e1a41 100644 --- a/inc/ws/Controlleur/class.ws.services.php +++ b/inc/ws/Controlleur/class.ws.services.php @@ -197,8 +197,9 @@ class wsServices extends cubeFlashGateway if (!isset($cover)) { $cover = WS_FILES . '/social_image/' . $id . '.jpg'; $limit = TIME - (3600 * 24 * 5); + $minsize = 20 * 1024; - if (isset($_GET['force']) || !file_exists($cover) || filemtime($cover) < $limit) { + if (isset($_GET['force']) || !file_exists($cover) || filemtime($cover) < $limit || filesize($cover) < $minsize) { $url = 'https://workshop.fluidbook.com/viewerh/' . $id . '_' . $book->hash . '_' . TIME . '/?nointerface=1'; if (isset($_GET['forcecompile'])) { $url .= '&force=1'; -- 2.39.5