Skip to content

Commit 2e4c8f7

Browse files
Quote rawurlencode parameters
1 parent 4a46020 commit 2e4c8f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/helpers/bitbucket.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ bitbucket_pullrequest_progress_comment() {
123123
# $2: hash of merge commit
124124
# $3: hash of source commit
125125
# $4: hash of target commit
126-
build_url_job="$ATC_EXTERNAL_URL/teams/$(rawurlencode $BUILD_TEAM_NAME)/pipelines/$(rawurlencode $BUILD_PIPELINE_NAME)/jobs/$(rawurlencode $BUILD_JOB_NAME)"
127-
build_url="${build_url_job}/builds/$(rawurlencode $BUILD_NAME)"
126+
build_url_job="$ATC_EXTERNAL_URL/teams/$(rawurlencode "$BUILD_TEAM_NAME")/pipelines/$(rawurlencode "$BUILD_PIPELINE_NAME")/jobs/$(rawurlencode "$BUILD_JOB_NAME")"
127+
build_url="${build_url_job}/builds/$(rawurlencode "$BUILD_NAME")"
128128
build_status_pre="[*Build"
129129
build_status_post="* at **[${BUILD_PIPELINE_NAME} > ${BUILD_JOB_NAME}]($build_url_job)** for $2"
130130
if [ "$2" == "$3" ]; then

0 commit comments

Comments
 (0)