Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Escape place names
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Jun 30, 2017
1 parent 5abf3e5 commit c381784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/locations/FeatureServiceClient.js
Expand Up @@ -14,7 +14,7 @@ function formatPointUri(latitude, longitude) {
}

function formatNameUri(names) {
return `http://${apiHost}/features/name/${names.join(',')}`;
return `http://${apiHost}/features/name/${names.map(encodeURIComponent).join(',')}`;
}

function callFeatureService(uri) {
Expand Down

0 comments on commit c381784

Please sign in to comment.