Skip to content

Commit acd9123

Browse files
author
Vincent Wilms
committed
Encode URI
1 parent 68d646e commit acd9123

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/clients/matlab/NexusClient.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ function export(self, dateTimeBegin, dateTimeEnd, filePeriod, fileFormat, ...
197197
requestMessage = RequestMessage('get');
198198

199199
uri = URI([self.BaseUrl '/api/v1/data' ...
200-
'?resourcePath=' resourcePath ...
201-
'&begin=' dateTimeBegin ...
202-
'&end=' dateTimeEnd]);
200+
'?resourcePath=' urlencode(resourcePath) ...
201+
'&begin=' urlencode(dateTimeBegin) ...
202+
'&end=' urlencode(dateTimeEnd)]);
203203

204204
response = self.send(requestMessage, uri);
205205
end

0 commit comments

Comments
 (0)