From 9a2c3f6299978df3024cc4362d4d0ee8f89007c2 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Wed, 12 Jul 2023 12:58:02 -0600 Subject: [PATCH] Use isset with REQUEST address and mac --- app/provision/index.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/provision/index.php b/app/provision/index.php index a87077856d..184e8ac569 100644 --- a/app/provision/index.php +++ b/app/provision/index.php @@ -38,8 +38,12 @@ $device_template = ''; //define PHP variables from the HTTP values - $device_address = $_REQUEST['mac'] ?? ''; - $device_address = $_REQUEST['address'] ?? ''; + if (isset($_REQUEST['address'])) { + $device_address = $_REQUEST['address']; + } + if (isset($_REQUEST['mac'])) { + $device_address = $_REQUEST['mac']; + } $file = $_REQUEST['file'] ?? ''; $ext = $_REQUEST['ext'] ?? ''; //if (!empty($_REQUEST['template'])) {