diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-09-20 15:14:11 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-09-20 15:14:11 +0000 |
commit | afc4d0b798b6803bb6749fde220388bf8a61065e (patch) | |
tree | d771b4fdd1dd2ee5efed862d5c17efb8087d5190 /usr | |
parent | 61c3a98fa5a1acb9fd38678ec243c0c107e5240e (diff) | |
download | pfsense-afc4d0b798b6803bb6749fde220388bf8a61065e.zip pfsense-afc4d0b798b6803bb6749fde220388bf8a61065e.tar.gz |
Swap the arguments.
Found-by: lurking-irc-chatroom
Diffstat (limited to 'usr')
-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 641828f..d3dc3f7 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -132,7 +132,7 @@ if ($_POST) { if($_POST['restorearea'] <> "") { /* restore a specific area of the configuration */ $rules = file_get_contents($_FILES['conffile']['tmp_name']); - if(stristr($_POST['restorearea'], $rules) == false) { + if(stristr($rules, $_POST['restorearea']) == false) { $input_errors[] = "You have selected to restore a area but we could not locate the correct xml tag."; } else { restore_config_section($_POST['restorearea'], $rules); |