From d999e79a8b907db57a5283d9dd25fe56c56a0f31 Mon Sep 17 00:00:00 2001 From: Eeshan Garg Date: Fri, 28 Dec 2018 17:00:40 -0330 Subject: [PATCH] webhooks/bitbucket2: Decode improperly encoded stream names and topics. --- zerver/webhooks/bitbucket2/view.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zerver/webhooks/bitbucket2/view.py b/zerver/webhooks/bitbucket2/view.py index 7c5f9ee550..34c9054616 100644 --- a/zerver/webhooks/bitbucket2/view.py +++ b/zerver/webhooks/bitbucket2/view.py @@ -69,10 +69,12 @@ def api_bitbucket2_webhook(request: HttpRequest, user_profile: UserProfile, body = body_function(payload) if type != 'push': - check_send_webhook_message(request, user_profile, subject, body) + check_send_webhook_message(request, user_profile, subject, + body, unquote_url_parameters=True) else: for b, s in zip(body, subject): - check_send_webhook_message(request, user_profile, s, b) + check_send_webhook_message(request, user_profile, s, b, + unquote_url_parameters=True) return json_success()