Skip to content

Commit

Permalink
Escape URLs to %20 instead of +. Hat tip: @mmd-osm
Browse files Browse the repository at this point in the history
  • Loading branch information
grischard committed Feb 24, 2019
1 parent 77978f4 commit a3c41d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2019-02-23</releaseDate>
<version>1.1</version>
<version>1.2</version>
<develStage>alpha</develStage>
<compatibility>
<ver>5.0</ver>
Expand Down
2 changes: 1 addition & 1 deletion username.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function username_civicrm_validateForm($formName, &$fields, &$files, &$form, &$e

$osm = CRM_Utils_Array::value( $osmfieldid, $fields );
if (strlen((string)$osm) > 0) {
$url = 'https://api.openstreetmap.org/api/0.6/changesets?time=9999-01-01&display_name='.urlencode($osm);
$url = 'https://api.openstreetmap.org/api/0.6/changesets?time=9999-01-01&display_name='.rawurlencode($osm);
$handle = curl_init($url);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE);

Expand Down

0 comments on commit a3c41d5

Please sign in to comment.