diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-03-18 14:18:37 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-03-18 14:18:37 -0300 |
commit | a84a84bf31ed33c7e132b704186a56b77cc9148a (patch) | |
tree | 85c40074dd19ddb5a5167f5ab68406beaa57c87b /config/snort-old/snort_download_rules.php | |
parent | 0de5b6b80002794f5b65c0143eb65cf5e4a95f25 (diff) | |
download | pfsense-packages-a84a84bf31ed33c7e132b704186a56b77cc9148a.tar.gz pfsense-packages-a84a84bf31ed33c7e132b704186a56b77cc9148a.tar.bz2 pfsense-packages-a84a84bf31ed33c7e132b704186a56b77cc9148a.zip |
Fixup URLs:
- Replace http by https
- *.pfsense.com -> *.pfsense.org
- www.pfsense.org/packages/config -> packages.pfsense.org/packages/config
Diffstat (limited to 'config/snort-old/snort_download_rules.php')
-rw-r--r-- | config/snort-old/snort_download_rules.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort-old/snort_download_rules.php b/config/snort-old/snort_download_rules.php index 9826ba2a..a559bad2 100644 --- a/config/snort-old/snort_download_rules.php +++ b/config/snort-old/snort_download_rules.php @@ -224,7 +224,7 @@ if (file_exists("{$tmpfname}/{$pfsense_rules_filename_md5}")) { } else { update_status(gettext("Downloading pfsense md5 file...")); ini_set('user_agent','Mozilla/4.0 (compatible; MSIE 6.0)'); - $image = @file_get_contents("http://www.pfsense.com/packages/config/snort/pfsense_rules/pfsense_rules.tar.gz.md5"); + $image = @file_get_contents("https://packages.pfsense.org/packages/config/snort/pfsense_rules/pfsense_rules.tar.gz.md5"); // $image = @file_get_contents("http://www.mtest.local/pub-bin/oinkmaster.cgi/{$oinkid}/pfsense_rules.tar.gz.md5"); $f = fopen("{$tmpfname}/pfsense_rules.tar.gz.md5", 'w'); fwrite($f, $image); @@ -396,7 +396,7 @@ if (file_exists("{$tmpfname}/{$pfsense_rules_filename}")) { update_status(gettext("There is a new set of Pfsense rules posted. Downloading...")); update_output_window(gettext("May take 4 to 10 min...")); // download_file_with_progress_bar("http://www.mtest.local/pub-bin/oinkmaster.cgi/{$oinkid}/pfsense_rules.tar.gz", $tmpfname . "/{$pfsense_rules_filename}", "read_body_firmware"); - download_file_with_progress_bar("http://www.pfsense.com/packages/config/snort/pfsense_rules/pfsense_rules.tar.gz", $tmpfname . "/{$pfsense_rules_filename}", "read_body_firmware"); + download_file_with_progress_bar("https://packages.pfsense.org/packages/config/snort/pfsense_rules/pfsense_rules.tar.gz", $tmpfname . "/{$pfsense_rules_filename}", "read_body_firmware"); update_all_status($static_output); update_status(gettext("Done downloading rules file.")); } |