summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/diag_backup.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 5d03185..d7fe52e 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -263,7 +263,7 @@ if ($_POST) {
$savemsg = "The configuration area has been restored. You may need to reboot the firewall.";
}
} else {
- if(!stristr($data, $g['xml_rootobj'])) {
+ 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 */
OpenPOWER on IntegriCloud