From ec1155aa847124e28b0c74f4b5ae2a1fb75339bd Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Fri, 17 May 2024 17:39:10 +0200 Subject: [PATCH] Exit only if not in TEST_MODE We can't test this code if it exits. --- program/actions/mail/show.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/program/actions/mail/show.php b/program/actions/mail/show.php index 1610d68d7d0..47ed8a95d66 100644 --- a/program/actions/mail/show.php +++ b/program/actions/mail/show.php @@ -171,6 +171,9 @@ public function run($args = []) } } + if (defined('ROUNDCUBE_TEST_MODE')) { + throw new Exception('simulatedExit'); + } exit; }