summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2016-09-25 17:06:09 +0100
committerSean McGivern <sean@gitlab.com>2016-09-26 16:01:17 +0100
commit20de47235e39e585ac1c8746fc9c4f673da910a0 (patch)
tree0851be1e2ce9dedc4e46f5e89b5137e3925f38cd /app
parentc8d92f95954dd37e50af8d7a91271566f00cb25b (diff)
downloadgitlab-ce-20de47235e39e585ac1c8746fc9c4f673da910a0.tar.gz
Wrap List-Unsubscribe link in angle bracketsfix-unsubscribe-header
Diffstat (limited to 'app')
-rw-r--r--app/mailers/notify.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/mailers/notify.rb b/app/mailers/notify.rb
index 9799f1dc886..29f1c527776 100644
--- a/app/mailers/notify.rb
+++ b/app/mailers/notify.rb
@@ -109,7 +109,7 @@ class Notify < BaseMailer
headers['X-GitLab-Reply-Key'] = reply_key
if !@labels_url && @sent_notification && @sent_notification.unsubscribable?
- headers['List-Unsubscribe'] = unsubscribe_sent_notification_url(@sent_notification, force: true)
+ headers['List-Unsubscribe'] = "<#{unsubscribe_sent_notification_url(@sent_notification, force: true)}>"
@sent_notification_url = unsubscribe_sent_notification_url(@sent_notification)
end