Skip to content

Commit

Permalink
Convert HTML entities before urlencoding address in geocode cron plugin.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Mar 20, 2018
1 parent ab67534 commit c6e8f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fabrik_cron/geocode/geocode.php
Expand Up @@ -221,7 +221,7 @@ public function process(&$data, &$listModel)
{
// OK! Lets try and geocode it ...
$total_attempts++;
$full_addr = urlencode($full_addr);
$full_addr = urlencode(html_entity_decode($full_addr, ENT_QUOTES));
$res = $gmap->getLatLng($full_addr, 'array', $apiKey);

if ($res['status'] == 'OK')
Expand Down

0 comments on commit c6e8f11

Please sign in to comment.