mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-03 20:40:37 -05:00
net/upnp: switch from shell_exec() to shell_safe() with automatic trim()
This commit is contained in:
parent
0916add402
commit
c1b5dfe2a3
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue