From: vincent@cubedesigners.com Date: Fri, 2 Oct 2020 12:25:13 +0000 (+0000) Subject: fix #3930 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=42f349dd432bba2bd50a18046fb658bdce1027dc;p=cubeextranet.git fix #3930 @0.25 --- 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';