Skip to content
This repository has been archived by the owner on Dec 3, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from janpapenbrock/urlencode
Browse files Browse the repository at this point in the history
Use URL encode to encode query parameter. - Many thanks to @janpapenbrock
  • Loading branch information
anthony-mills committed May 20, 2016
2 parents 5aed225 + cbb8f10 commit 1b81751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mills/google-places/googlePlaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ public function setLocation($location) {

public function setQuery($query)
{
$this->_query = preg_replace('/\s/', '+', $query);
$this->_query = urlencode($query);
}

public function setRadius($radius)
Expand Down

0 comments on commit 1b81751

Please sign in to comment.