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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

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