Skip to content
This repository was archived by the owner on Mar 27, 2025. It is now read-only.

Commit 2aaee4c

Browse files
committed
Handle apostrophe in file path value
1 parent d4a8214 commit 2aaee4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/mathworks/ci/RunMatlabTestsBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private String getInputArguments() {
284284
artifact.addFilePathArgTo(args);
285285
}
286286

287-
args.forEach((key, val) -> inputArgsList.add("'" + key + "'" + "," + "'" + val + "'"));
287+
args.forEach((key, val) -> inputArgsList.add("'" + key + "'" + "," + "'" + val.replaceAll("'", "''") + "'"));
288288

289289
return String.join(",", inputArgsList);
290290
}

0 commit comments

Comments
 (0)