diff options
author | bmeeks8 <bmeeks8@bellsouth.net> | 2013-10-19 11:19:50 -0400 |
---|---|---|
committer | bmeeks8 <bmeeks8@bellsouth.net> | 2013-10-19 11:19:50 -0400 |
commit | bfdefef7e3d0ad8a0a6dbfa5b49a7de6a06da115 (patch) | |
tree | 8fd71871107c0fe4666a3aa9b2fe8d59c89778da /config/snort | |
parent | 9ab973f6c1c9f66bfa671ff5e7020a93015915b3 (diff) | |
download | pfsense-packages-bfdefef7e3d0ad8a0a6dbfa5b49a7de6a06da115.tar.gz pfsense-packages-bfdefef7e3d0ad8a0a6dbfa5b49a7de6a06da115.tar.bz2 pfsense-packages-bfdefef7e3d0ad8a0a6dbfa5b49a7de6a06da115.zip |
Add variables so file download progress bar resets
Diffstat (limited to 'config/snort')
-rwxr-xr-x | config/snort/snort_check_for_rule_updates.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/snort/snort_check_for_rule_updates.php b/config/snort/snort_check_for_rule_updates.php index 21eb7bd2..e7263330 100755 --- a/config/snort/snort_check_for_rule_updates.php +++ b/config/snort/snort_check_for_rule_updates.php @@ -130,7 +130,13 @@ function snort_download_file_url($url, $file_out) { /* It provides logging of returned CURL errors. */ /************************************************/ - global $g, $config, $pkg_interface, $last_curl_error, $fout, $ch, $file_size, $downloaded; + global $g, $config, $pkg_interface, $last_curl_error, $fout, $ch, $file_size, $downloaded, $first_progress_update; + + // Initialize required variables for pfSense "read_body()" function + $file_size = 1; + $downloaded = 1; + $first_progress_update = TRUE; + /* Array of message strings for HTTP Response Codes */ $http_resp_msg = array( 200 => "OK", 202 => "Accepted", 204 => "No Content", 205 => "Reset Content", |