mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/upnp: switch from shell_exec() to shell_safe() with automatic trim()
This commit is contained in:
@@ -230,7 +230,7 @@ function miniupnpd_configure_do($verbose = false)
|
||||
$config_text .= "serial=" . strtoupper(substr(miniupnpd_uuid(), 0, 8)) . "\n";
|
||||
|
||||
/* set model number */
|
||||
$config_text .= "model_number=" . trim(shell_exec('opnsense-version -v')) . "\n";
|
||||
$config_text .= "model_number=" . shell_safe('opnsense-version -v') . "\n";
|
||||
|
||||
/* upnp access restrictions */
|
||||
foreach (miniupnpd_permuser_list() as $permuser) {
|
||||
|
||||
Reference in New Issue
Block a user