aboutsummaryrefslogtreecommitdiffstats
path: root/config/pf-blocker/pfblocker.php
diff options
context:
space:
mode:
authormarcelloc <marcellocoutinho@gmail.com>2011-10-29 03:49:09 -0200
committermarcelloc <marcellocoutinho@gmail.com>2011-10-29 03:49:09 -0200
commita5f75afdd34f4d3938adc7acd924f06f3a7f3aef (patch)
tree0144d0aab87a90b05c46b1ac26df4037c596eebf /config/pf-blocker/pfblocker.php
parentb08d625e4e6ac8670cd1d4b3b7ff74b8271a7247 (diff)
downloadpfsense-packages-a5f75afdd34f4d3938adc7acd924f06f3a7f3aef.tar.gz
pfsense-packages-a5f75afdd34f4d3938adc7acd924f06f3a7f3aef.tar.bz2
pfsense-packages-a5f75afdd34f4d3938adc7acd924f06f3a7f3aef.zip
pfBlocker - include table-entries size validation check
Diffstat (limited to 'config/pf-blocker/pfblocker.php')
-rw-r--r--config/pf-blocker/pfblocker.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/pf-blocker/pfblocker.php b/config/pf-blocker/pfblocker.php
index 4eb07634..f1dd85f5 100644
--- a/config/pf-blocker/pfblocker.php
+++ b/config/pf-blocker/pfblocker.php
@@ -52,8 +52,8 @@ foreach ($files as $cont => $file){
${preg_replace("/\s/","",$matches[1])}=$matches[2];
}
else{
- if (${$ISOcount}==0){
- ${$ISOCount}++;
+ if (${$ISOCode."c"}==""){
+ ${$ISOCode."c"}="ok";
$options.= '<option><name>'.$Country .'-'.$ISOCode.' ('.$TotalNetworks.') '.' </name><value>'.$ISOCode.'</value></option>'."\n";
}
${$ISOCode}.=$line."\n";