Skip to content

Commit ba27a7d

Browse files
Fix escape double quotes (#15)
1 parent 73983e9 commit ba27a7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/teamwork.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ teamwork::add_comment() {
1616
response=$(curl -X "POST" "$TEAMWORK_URI/projects/api/v1/tasks/$TEAMWORK_TASK_ID/comments.json" \
1717
-u "$TEAMWORK_API_TOKEN"':' \
1818
-H 'Content-Type: application/json; charset=utf-8' \
19-
-d "{ \"comment\": { \"body\": \"$body\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
19+
-d "{ \"comment\": { \"body\": \"${body//\"/}\", \"notify\": \"\", \"content-type\": \"text\", \"isprivate\": false } }" )
2020

2121
echo "$response"
2222
}

0 commit comments

Comments
 (0)