Révision e41ab9aa
Ajouté par Renato Botelho il y a presque 10 ans
usr/local/www/diag_smart.php | ||
---|---|---|
85 | 85 |
if(!empty($email)) |
86 | 86 |
{ |
87 | 87 |
// Put it in the smartd.conf file |
88 |
shell_exec("/usr/bin/sed -i old 's/^DEVICESCAN.*/DEVICESCAN -H -m " . $email . "/' /usr/local/etc/smartd.conf");
|
|
88 |
shell_exec("/usr/bin/sed -i old 's/^DEVICESCAN.*/DEVICESCAN -H -m " . escapeshellarg($email) . "/' /usr/local/etc/smartd.conf");
|
|
89 | 89 |
} |
90 | 90 |
// Nope |
91 | 91 |
else |
Formats disponibles : Unified diff
Escape parameters passed to shell_exec()