backport bug geoloc
authorPascal Corpet <pascal.corpet@m4x.org>
Sat, 25 Jun 2005 16:29:33 +0000 (16:29 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:29:25 +0000 (23:29 +0200)
Patches applied:

 * opensource@polytechnique.org--2005/platal--release--0.9.7--patch-11
   correction d'un bug sur geoloc.org

git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-749

include/geoloc.inc.php

index 9892c9f..eaabbd0 100644 (file)
@@ -72,7 +72,6 @@ $page->register_function('geoloc_region', '_geoloc_region_smarty');
 function get_address_infos($txt) {
     $url ="http://www.geoloc.org/adressparser/address.php?txt=".urlencode(utf8_encode($txt));
     if (!($f = @fopen($url, 'r'))) return false;
-    fgets($f);
     $keys = explode('|',fgets($f));
     $vals = explode('|',fgets($f));
     $infos = array();