mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Check $_FILES['ulfile']['name'] and not ['tmpname'] since it will not tell us
the original uploaded file name. Duhhhhhh.
This commit is contained in:
parent
e9f7299210
commit
69769bcc26
@ -137,9 +137,9 @@ if ($_POST && !file_exists($d_firmwarelock_path)) {
|
||||
/* fire up the update script in the background */
|
||||
touch($d_firmwarelock_path);
|
||||
$savemsg = "The firmware is now being updated. The firewall will reboot automatically.";
|
||||
if(stristr($_FILES['ulfile']['tmp_name'],"nanobsd"))
|
||||
if(stristr($_FILES['ulfile']['name'],"nanobsd"))
|
||||
mwexec_bg("/etc/rc.firmware pfSenseNanoBSDupgrade {$g['upload_path']}/firmware.tgz");
|
||||
else if(stristr($_FILES['ulfile']['tmp_name'],"bdiff"))
|
||||
else if(stristr($_FILES['ulfile']['name'],"bdiff"))
|
||||
mwexec_bg("/etc/rc.firmware delta_update {$g['upload_path']}/firmware.tgz");
|
||||
else
|
||||
mwexec_bg("/etc/rc.firmware pfSenseupgrade {$g['upload_path']}/firmware.tgz");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user