From 54c530933d2708a293c3930657aa2ca93da25351 Mon Sep 17 00:00:00 2001 From: Pascal <38765483+abanink@users.noreply.github.com> Date: Fri, 5 May 2023 15:58:25 +0200 Subject: [PATCH] Update src/Module/Magic.php Co-authored-by: Hypolite Petovan --- src/Module/Magic.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Module/Magic.php b/src/Module/Magic.php index 8c9ba6de67..639d0810dc 100644 --- a/src/Module/Magic.php +++ b/src/Module/Magic.php @@ -69,10 +69,10 @@ class Magic extends BaseModule $this->logger->debug('args', ['request' => $_REQUEST]); - $addr = $_REQUEST['addr'] ?? ''; - $dest = $_REQUEST['dest'] ?? ''; - $bdest = $_REQUEST['bdest'] ?? ''; - $owa = (!empty($_REQUEST['owa']) ? intval($_REQUEST['owa']) : 0); + $addr = $request['addr'] ?? ''; + $dest = $request['dest'] ?? ''; + $bdest = $request['bdest'] ?? ''; + $owa = intval($request['owa'] ?? 0); $cid = 0; // bdest is preferred as it is hex-encoded and can survive url rewrite and argument parsing -- 2.39.5