Skip to content

Commit c1632c2

Browse files
committed
escape module.
1 parent f932fae commit c1632c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emhttp/plugins/dynamix/include/SriovHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function rebindVfDriver($vf, $sriov, $target = 'original')
175175
// Step 2: Load target driver if needed
176176
$target_bind = "/sys/bus/pci/drivers/$new_drv/bind";
177177
if (!file_exists($target_bind))
178-
exec("modprobe $new_drv 2>/dev/null");
178+
exec("modprobe " . escapeshellarg($new_drv) . " 2>/dev/null");
179179

180180
// Step 3: Override driver binding
181181
if (is_writable($drv_override))

0 commit comments

Comments
 (0)