From fd13b3de7b0781385f34262df084de7bd7aebfef Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 8 Mar 2022 17:31:57 +0000 Subject: [PATCH] wait #5149 @0.5 --- inc/commons/class.common.url.php | 2 +- inc/ws/Metier/class.ws.document.php | 2 +- index.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inc/commons/class.common.url.php b/inc/commons/class.common.url.php index 2dc5812c3..e9cb52885 100644 --- a/inc/commons/class.common.url.php +++ b/inc/commons/class.common.url.php @@ -12,7 +12,7 @@ class commonUrl $closesession = ['relay', 'relayfb']; $bypass = array_merge(['stats', 'telecharger', 'telechargerr', 'orpiref', 'resetPassword'], $closesession); - if (in_array($args[0], $closesession)) { + if (isset($args[0]) && in_array($args[0], $closesession)) { session_write_close(); } diff --git a/inc/ws/Metier/class.ws.document.php b/inc/ws/Metier/class.ws.document.php index b9027769a..ebe652bcc 100644 --- a/inc/ws/Metier/class.ws.document.php +++ b/inc/ws/Metier/class.ws.document.php @@ -567,7 +567,7 @@ class wsDocument extends cubeMetier // Thumb for composition panel $this->getFile($page, 'jpg', 'thumb', true, true, '', true); // Image for link editor - $this->getFile($page, 'jpg', 150, true, true, '', true); + $this->getFile($page, 'jpg', 150, true, true, 'html', true); // Make SVG base file $this->makeSVGFile($page, true); } diff --git a/index.php b/index.php index 9bdd43b77..d69440710 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ function exception_handle($e) function before_session_start() { - if (stristr($_SERVER['PATH_INFO'], 'relay')) { + if (isset($_SERVER['PATH_INFO']) && stristr($_SERVER['PATH_INFO'], 'relay')) { ini_set('redis.session.locking_enabled', 0); } } -- 2.39.5