Skip to content

Commit a9a5198

Browse files
Merge pull request #2 from Enclude-Components/feature/url-encode-bugfix
# Changes - Added URL encoding to Sharepoint.searchFolder method
2 parents 41cc2ed + 717927e commit a9a5198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

force-app/main/default/classes/Sharepoint.cls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ global with sharing class Sharepoint {
2525
}
2626
global static SharepointSearchResponse searchFolder(String query) {
2727
String basePath = getBasePath();
28-
query = String.escapeSingleQuotes(query.replace(' ', '+'));
28+
query = EncodingUtil.urlEncode(query, 'UTF-8');
2929
HttpRequest req = new HttpRequest();
3030
req.setMethod('GET');
3131
HttpResponse res = QKomGraphUtils.send(

0 commit comments

Comments
 (0)