Skip to content

Commit 474baaa

Browse files
committed
Merge pull request ansible#1981 from macdiesel/macdiesel/urlencode-hipchat-api-path
Escape room name in hipchat api v2 urls
2 parents fc79c88 + ed35159 commit 474baaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notification/hipchat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def send_msg_v2(module, token, room, msg_from, msg, msg_format='text',
147147

148148
POST_URL = api + NOTIFY_URI_V2
149149

150-
url = POST_URL.replace('{id_or_name}', room)
150+
url = POST_URL.replace('{id_or_name}', urllib.pathname2url(room))
151151
data = json.dumps(body)
152152

153153
if module.check_mode:

0 commit comments

Comments
 (0)