From eddd4171582b40c1bb4a0289e5495288a0dec94a Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Wed, 8 Jul 2015 21:40:57 +0800 Subject: Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc) --- extensions/BMO/Extension.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm index db3385e77..951799bfa 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -927,8 +927,8 @@ sub attachment_process_data { $url = $data; } - if (my $content_type = _detect_attached_url($url)->{content_type}) { - $attributes->{mimetype} = $content_type; + if (my $detected = _detect_attached_url($url)) { + $attributes->{mimetype} = $detected->{content_type}; $attributes->{ispatch} = 0; } } -- cgit v1.2.3-24-g4f1b