diff --git a/info.xml b/info.xml index a9c82f0..3c9a920 100644 --- a/info.xml +++ b/info.xml @@ -15,7 +15,7 @@ http://www.gnu.org/licenses/agpl-3.0.html 2019-02-23 - 1.1 + 1.2 alpha 5.0 diff --git a/username.php b/username.php index b233312..7529422 100644 --- a/username.php +++ b/username.php @@ -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);