Skip to content

Commit

Permalink
Bug 1143132: emails about redirected attachment urls link to attachme…
Browse files Browse the repository at this point in the history
…nt-edit instead of the actual url (mozreview, github, etc)
  • Loading branch information
globau committed Jul 8, 2015
1 parent 9528297 commit eddd417
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/BMO/Extension.pm
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit eddd417

Please sign in to comment.