Skip to content

Commit 99fd110

Browse files
committedJan 21, 2025
inbo/vlaams-biodiversiteitsportaal#130: Fix encoding of query param to occurence service
1 parent 9e02b2e commit 99fd110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/main/groovy/au/org/ala/spatial/util/OccurrenceData.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class OccurrenceData {
3535

3636
//remove sensitive records that will not be LSID matched
3737
try {
38-
Records r = new Records(bs, q + "&fq=" + UriEncoder.encode("-sensitive:[* TO *]"), null, records_filename, null, facetName)
38+
Records r = new Records(bs, q + "&fq=" + URLEncoder.encode("-sensitive:[* TO *]", "utf-8"), null, records_filename, null, facetName)
3939

4040
StringBuilder sb = null
4141
if (r.getRecordsSize() > 0) {

0 commit comments

Comments
 (0)
Failed to load comments.