From 6819b7f60c841f89e415d6547e2e776cf1a47c5e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 30 Jun 2009 08:52:47 -0300 Subject: Fix last commit preserving < and > on xml_rootobj checking --- usr/local/www/diag_backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr/local/www/diag_backup.php') 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 */ -- cgit v1.1