summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-07-08 15:40:57 +0200
committerByron Jones <glob@mozilla.com>2015-07-08 15:40:57 +0200
commiteddd4171582b40c1bb4a0289e5495288a0dec94a (patch)
tree005be4f0c5953a0d90f13e5127a0744bcce8112f
parent952829714b22a5020afabb02b6bab6ce0c8572fa (diff)
downloadbugzilla-eddd4171582b40c1bb4a0289e5495288a0dec94a.tar.gz
bugzilla-eddd4171582b40c1bb4a0289e5495288a0dec94a.tar.xz
Bug 1143132: emails about redirected attachment urls link to attachment-edit instead of the actual url (mozreview, github, etc)
-rw-r--r--extensions/BMO/Extension.pm4
1 files 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;
}
}