summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-07-01 19:50:14 -0400
committerChris Buechler <cmb@pfsense.org>2010-07-01 19:50:14 -0400
commit7af7a9e8a8843b0229e7bd69f67cd49f1989ab03 (patch)
tree4f7eb66fc0bd14e023f4983414b6c4e8fd846205
parent9e7ef489f76b80de2a835e0d6dd9bad8155a5b3e (diff)
downloadpfsense-7af7a9e8a8843b0229e7bd69f67cd49f1989ab03.zip
pfsense-7af7a9e8a8843b0229e7bd69f67cd49f1989ab03.tar.gz
fix backup/restore with alternate xmlrootobj
-rwxr-xr-xusr/local/www/diag_backup.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index bc30597..70df131 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -177,8 +177,8 @@ if ($_POST) {
}
} else {
$rules = file_get_contents($_FILES['conffile']['tmp_name']);
- if(stristr($rules, "pfsense") == false) {
- $input_errors[] = "You have selected to restore the full configuration but we could not locate a pfsense tag.";
+ if(!stristr($rules, "<" . $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 */
if (config_install($_FILES['conffile']['tmp_name']) == 0) {
OpenPOWER on IntegriCloud