Skip to content

Commit 41cc2ed

Browse files
Merge pull request #1 from Enclude-Components/feature/single-quote-escape-bugfix
# Changes - Escape single quotes in Sharepoint.searchFolder method
2 parents 4cd05a5 + 34292a7 commit 41cc2ed

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 = query.replace(' ', '+');
28+
query = String.escapeSingleQuotes(query.replace(' ', '+'));
2929
HttpRequest req = new HttpRequest();
3030
req.setMethod('GET');
3131
HttpResponse res = QKomGraphUtils.send(

0 commit comments

Comments
 (0)