summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2016-02-12 02:11:08 -0600
committerChris Buechler <cmb@pfsense.org>2016-02-12 02:11:08 -0600
commitcc293ac0f602ab60ede5be5a6d931362789e4c3c (patch)
treeed7c570226508af8e11e3d902d809e66096cf954 /src/etc/inc/pfsense-utils.inc
parent99a05a0a051c7722f800b5ed0f6560ec8d5fbda0 (diff)
downloadpfsense-cc293ac0f602ab60ede5be5a6d931362789e4c3c.zip
pfsense-cc293ac0f602ab60ede5be5a6d931362789e4c3c.tar.gz
If URL table file size is 0, force update. Ticket #5848
Diffstat (limited to 'src/etc/inc/pfsense-utils.inc')
-rw-r--r--src/etc/inc/pfsense-utils.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc
index d169740..9788fb4 100644
--- a/src/etc/inc/pfsense-utils.inc
+++ b/src/etc/inc/pfsense-utils.inc
@@ -2164,7 +2164,7 @@ function process_alias_urltable($name, $url, $freq, $forceupdate=false, $validat
}
// If the file doesn't exist or is older than update_freq days, fetch a new copy.
- if (!file_exists($urltable_filename) ||
+ if (!file_exists($urltable_filename) || (filesize($urltable_filename) == "0") ||
((time() - filemtime($urltable_filename)) > ($freq * 86400 - 90)) ||
$forceupdate) {
OpenPOWER on IntegriCloud