summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorRenato Botelho <renato.botelho@bluepex.com>2009-06-30 08:52:47 -0300
committerRenato Botelho <renato.botelho@bluepex.com>2009-06-30 08:52:47 -0300
commit6819b7f60c841f89e415d6547e2e776cf1a47c5e (patch)
tree730a77b1af0341d03ac86df195ebe05963b41fa3 /usr/local/www/diag_backup.php
parent2a48bc009d30c07a5bce188ddd7041e64f9a2e8a (diff)
downloadpfsense-6819b7f60c841f89e415d6547e2e776cf1a47c5e.zip
pfsense-6819b7f60c841f89e415d6547e2e776cf1a47c5e.tar.gz
Fix last commit preserving < and > on xml_rootobj checking
Diffstat (limited to 'usr/local/www/diag_backup.php')
-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