summaryrefslogtreecommitdiff
path: root/FS/FS/Misc
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2014-11-26 16:55:41 -0800
committerMark Wells <mark@freeside.biz>2014-11-26 16:55:41 -0800
commit0f0bc1ef7aafc6b3869c0f71ee2528c1c9897ce6 (patch)
treeb7a70adbcac67c46bff79f0930d5a6ed2104a73f /FS/FS/Misc
parent79df9da17cf54366ef027a941c131cb1a016068e (diff)
don't look up or display census tracts for non-U.S. addresses, #32249
Diffstat (limited to 'FS/FS/Misc')
-rw-r--r--FS/FS/Misc/Geo.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/Misc/Geo.pm b/FS/FS/Misc/Geo.pm
index e41ba5d..a387aca 100644
--- a/FS/FS/Misc/Geo.pm
+++ b/FS/FS/Misc/Geo.pm
@@ -42,6 +42,10 @@ sub get_censustract_ffiec {
my $location = shift;
my $year = shift;
+ if ( length($location->{country}) and uc($location->{country}) ne 'US' ) {
+ return '';
+ }
+
warn Dumper($location, $year) if $DEBUG;
my $url = 'http://www.ffiec.gov/Geocode/default.aspx';