diff options
author | Renato Botelho <renato.botelho@bluepex.com> | 2009-06-30 08:45:19 -0300 |
---|---|---|
committer | Renato Botelho <renato.botelho@bluepex.com> | 2009-06-30 08:45:19 -0300 |
commit | 2a48bc009d30c07a5bce188ddd7041e64f9a2e8a (patch) | |
tree | 3310bdf4e4adbe0d16d815b95d37eb2cc2cf1ddd | |
parent | 619fe0c483d5df9927a252218a6ac3159c396842 (diff) | |
download | pfsense-2a48bc009d30c07a5bce188ddd7041e64f9a2e8a.zip pfsense-2a48bc009d30c07a5bce188ddd7041e64f9a2e8a.tar.gz |
Respect xml_rootobj when restoring a full backup
-rwxr-xr-x | usr/local/www/diag_backup.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 2470be4..5d03185 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -263,8 +263,8 @@ if ($_POST) { $savemsg = "The configuration area has been restored. You may need to reboot the firewall."; } } else { - if(!stristr($data, "<pfsense>")) { - $input_errors[] = "You have selected to restore the full configuration but we could not locate a pfsense tag."; + if(!stristr($data, $g['xml_rootobj'])) { + $input_errors[] = "You have selected to restore the full configuration but we could not locate a " . $g['xml_rootobj'] . " tag."; } else { /* restore the entire configuration */ file_put_contents($_FILES['conffile']['tmp_name'], $data); @@ -548,4 +548,4 @@ if($reboot_needed == true) { exit; } -?>
\ No newline at end of file +?> |