diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-18 13:38:10 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-18 13:38:10 -0200 |
commit | 28a42c415702e621940982c711d37470f611161c (patch) | |
tree | cbbdd9e570dde8e176f7bf8b544b7694f9d6cd22 /config/suricata/suricata_etiqrisk_update.php | |
parent | 52d44711e1a5730bb4be2bdfd9bba1a5dc352a2c (diff) | |
download | pfsense-packages-28a42c415702e621940982c711d37470f611161c.tar.gz pfsense-packages-28a42c415702e621940982c711d37470f611161c.tar.bz2 pfsense-packages-28a42c415702e621940982c711d37470f611161c.zip |
Fix operator, spotted by BBcan177
Diffstat (limited to 'config/suricata/suricata_etiqrisk_update.php')
-rw-r--r-- | config/suricata/suricata_etiqrisk_update.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/suricata/suricata_etiqrisk_update.php b/config/suricata/suricata_etiqrisk_update.php index 42bcef38..6723ce99 100644 --- a/config/suricata/suricata_etiqrisk_update.php +++ b/config/suricata/suricata_etiqrisk_update.php @@ -157,7 +157,7 @@ if (suricata_check_iprep_md5("categories.txt")) { // the list files in the SURICATA_IPREP_PATH directory. if (file_exists("{$iqRisk_tmppath}categories.txt") && file_exists("{$iqRisk_tmppath}categories.txt.md5")) { $new_md5 = file_get_contents("{$iqRisk_tmppath}categories.txt.md5"); - if ($new_md5 = trim(md5_file("{$iqRisk_tmppath}categories.txt"))) { + if ($new_md5 == trim(md5_file("{$iqRisk_tmppath}categories.txt"))) { @rename("{$iqRisk_tmppath}categories.txt", "{$iprep_path}categories.txt"); @rename("{$iqRisk_tmppath}categories.txt.md5", "{$iprep_path}categories.txt.md5"); $success = TRUE; @@ -180,7 +180,7 @@ if (suricata_check_iprep_md5("iprepdata.txt.gz")) { // the list files in the SURICATA_IPREP_PATH directory. if (file_exists("{$iqRisk_tmppath}iprepdata.txt.gz") && file_exists("{$iqRisk_tmppath}iprepdata.txt.gz.md5")) { $new_md5 = file_get_contents("{$iqRisk_tmppath}iprepdata.txt.gz.md5"); - if ($new_md5 = trim(md5_file("{$iqRisk_tmppath}iprepdata.txt.gz"))) { + if ($new_md5 == trim(md5_file("{$iqRisk_tmppath}iprepdata.txt.gz"))) { mwexec("/usr/bin/gunzip -f {$iqRisk_tmppath}iprepdata.txt.gz"); @rename("{$iqRisk_tmppath}iprepdata.txt", "{$iprep_path}iprepdata.txt"); @rename("{$iqRisk_tmppath}iprepdata.txt.gz.md5", "{$iprep_path}iprepdata.txt.gz.md5"); |