Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit 554e451

Browse files
jenkins-notifier.coffee: Encode project urls with whitespaces #2
Signed-off-by: Philipp Beckmann <[email protected]>
1 parent 6450e3c commit 554e451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scripts/jenkins-notifier.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module.exports = (robot) ->
4949
if data.name in @failing
5050
index = @failing.indexOf data.name
5151
@failing.splice index, 1 if index isnt -1
52-
robot.send user, "BUILD RESTORED: #{data.name} ##{data.build.number} (#{data.build.full_url})"
52+
robot.send user, "BUILD RESTORED: #{data.name} ##{data.build.number} (#{encodeURI(data.build.full_url)})"
5353

5454
catch error
5555
console.log "jenkins-notify error: #{error}. Data: #{req.body}"

0 commit comments

Comments
 (0)