diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-02-14 15:32:55 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-02-14 15:32:55 +0000 |
commit | 3af86226c27ccb299b463a951277c9250e51ad14 (patch) | |
tree | f23299ad667fca3987409b804bc8ba0761d473dc /usr/local/www/diag_backup.php | |
parent | b1e9ac0d10609d318b8d1f71d90407632f2c2791 (diff) | |
download | pfsense-3af86226c27ccb299b463a951277c9250e51ad14.zip pfsense-3af86226c27ccb299b463a951277c9250e51ad14.tar.gz |
fopen requires to paramaters. be sure to include "r"
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-x | usr/local/www/diag_backup.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 76edb6a..262ad6d 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -62,7 +62,7 @@ if ($_POST) { if (is_uploaded_file($_FILES['conffile']['tmp_name'])) { if (config_install($_FILES['conffile']['tmp_name']) == 0) { $command = "/sbin/sysctl -a | grep carp"; - $fd = fopen($_FILES['conffile']['tmp_name']); + $fd = fopen($_FILES['conffile']['tmp_name'], "r"); if(!$fd) { log_error("Warning, could not open " . $_FILES['conffile']['tmp_name']); return 1; |