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

Commit 376f42a

Browse files
authored
Escaped single quotes in url
1 parent b8bd3c4 commit 376f42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ default void prepareTmpFldr(FilePath tmpFldr, String runnerScript) throws IOExce
100100

101101
//This method replaces the placeholder with genscript's zip file location URL in temp folder
102102
default String replaceZipPlaceholder(String script, String url) {
103-
script = script.replace("${ZIP_FILE}", url);
103+
script = script.replace("${ZIP_FILE}", url.replaceAll("'","''"));
104104
return script;
105105
}
106106

0 commit comments

Comments
 (0)