From: Pascal <38765483+abanink@users.noreply.github.com> Date: Fri, 5 May 2023 13:58:25 +0000 (+0200) Subject: Update src/Module/Magic.php X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=54c530933d2708a293c3930657aa2ca93da25351;p=friendica.git Update src/Module/Magic.php Co-authored-by: Hypolite Petovan --- 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