From: vincent@cubedesigners.com Date: Wed, 7 Dec 2022 11:50:51 +0000 (+0000) Subject: wait #5630 @0.75 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5af232fb2b905cd2397299d932f3bfd6b5690aa6;p=cubeextranet.git wait #5630 @0.75 --- diff --git a/.docker/config/imagemagick/policy.xml b/.docker/config/imagemagick/policy.xml new file mode 100644 index 000000000..a7622022b --- /dev/null +++ b/.docker/config/imagemagick/policy.xml @@ -0,0 +1,96 @@ + + + + + + ]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index af7943451..38e5d915b 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -118,6 +118,8 @@ services: - '/home/extranet/.docker/config/cron/crontab:/etc/crontab' # Passwords - '/home/extranet/.docker/config/passwords:/root/passwords' + # ImageMagick + - '/home/extranet/.docker/config/imagemagick/policy.xml:/etc/ImageMagick-6/policy.xml' # Files - '/data/extranet/ftp:/ftp' - '/home/extranet/fonts/:/fonts/' diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 43e9144fa..e42f6c6e4 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -2928,6 +2928,10 @@ class zoomLink extends normalLink array('x' => $x, 'y' => $y, 'width' => $w, 'height' => $h), $left, $extractOptions, WS_CACHE . '/' . $cachedir . '/' . $compiler->book_id . '/'); + if (!file_exists($leftfile)) { + die('Error generating left part ' . $leftfile); + } + if (($x + $w) > $bookwidth) { if (!isset($attributes['pdf']) || !$attributes['pdf']) { $p = wsDAOBook::getDocumentPage($compiler->book_id, $attributes['page'] + 1);