Use isset with REQUEST address and mac

This commit is contained in:
FusionPBX
2023-07-12 12:58:02 -06:00
committed by GitHub
parent d3cfa9c2bc
commit 9a2c3f6299

View File

@@ -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'])) {