diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-02 00:27:03 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-02 00:27:03 +0000 |
commit | 709f48f0f06f48bfd730576ab57eeb87a61553fc (patch) | |
tree | 15c80b38cc56c43de335be4c4aca3aa5de23593b /usr | |
parent | b6f6723586356a5bdf5cd580592cccc5ee988cc5 (diff) | |
download | pfsense-709f48f0f06f48bfd730576ab57eeb87a61553fc.zip pfsense-709f48f0f06f48bfd730576ab57eeb87a61553fc.tar.gz |
Use new upload path
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_firmware.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/system_firmware.php b/usr/local/www/system_firmware.php index cd0762f..66d72a1 100755 --- a/usr/local/www/system_firmware.php +++ b/usr/local/www/system_firmware.php @@ -62,8 +62,8 @@ if ($_POST && !file_exists($d_firmwarelock_path)) { else if (stristr($_POST['Submit'], "Upgrade") || $_POST['sig_override']) $mode = "upgrade"; else if ($_POST['sig_no']) { - if(file_exists("{$g['tmp_path']}/firmware.tgz")) - unlink("{$g['tmp_path']}/firmware.tgz"); + if(file_exists("{$g['upload_path']}/firmware.tgz")) + unlink("{$g['upload_path']}/firmware.tgz"); } if ($mode) { if ($mode == "enable") { @@ -100,7 +100,7 @@ if ($_POST && !file_exists($d_firmwarelock_path)) { else if (($sigchk == 3) || ($sigchk == 4)) $sig_warning = "There has been an error verifying the signature on this image."; - if (!verify_gzip_file("{$g['tmp_path']}/firmware.tgz")) { + if (!verify_gzip_file("{$g['upload_path']}/firmware.tgz")) { $input_errors[] = "The image file is corrupt."; unlink("{$g['upload_path']}/firmware.tgz"); } |