Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit ea833e8

Browse files
committed
Un-escape single quotes
This resolves an issue where invalid single quote escaping causes failure when a commit message contains a single quote. Single quotes should not be escaped in JSON.
1 parent 202face commit ea833e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/git2s3.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,7 +1244,7 @@
12441244
"Ref": "CreateSSHKey"
12451245
},
12461246
"\",\n",
1247-
" \"raw-body\" : \"$util.escapeJavaScript($input.body)\"\n",
1247+
" \"raw-body\" : \"$util.escapeJavaScript($input.body).replace(\"\\'\",\"'\")\"\n",
12481248
" }\n",
12491249
"}"
12501250
]

0 commit comments

Comments
 (0)