Skip to content

Commit

Permalink
Maps_GoogleGeocoder - address being double urlencoded
Browse files Browse the repository at this point in the history
  • Loading branch information
Абрамов Виталий committed Jan 9, 2017
1 parent 3f79153 commit 5ac675b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/geocoders/Maps_GoogleGeocoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static function register() {
*/
protected function getRequestUrl( $address ) {
$urlArgs = [
'address' => urlencode( $address )
'address' => $address
];
if ( $GLOBALS['egMapsGMaps3ApiKey'] !== '' ) {
$urlArgs['key'] = $GLOBALS['egMapsGMaps3ApiKey'];
Expand Down

0 comments on commit 5ac675b

Please sign in to comment.