From db8ccde0f31e32475748b1e838afbad913d9cc7b Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 6 May 2014 13:26:37 +0800 Subject: Bug 1006290: reviewboard url detection should support http:// as well as https:// --- 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 05a329989..4e5972d2d 100644 --- a/extensions/BMO/Extension.pm +++ b/extensions/BMO/Extension.pm @@ -605,7 +605,7 @@ sub bug_end_of_create { } } -# detect github pull requests and set a unique content-type +# detect github pull requests and reviewboard reviews, set the content-type sub attachment_process_data { my ($self, $args) = @_; my $attributes = $args->{attributes}; @@ -637,7 +637,7 @@ sub attachment_process_data { $attributes->{mimetype} = GITHUB_PR_CONTENT_TYPE; $attributes->{ispatch} = 0; } - elsif ($url =~ m#^https://reviewboard(?:-dev)?\.allizom\.org/r/\d+/?#i) { + elsif ($url =~ m#^https?://reviewboard(?:-dev)?\.(?:allizom|mozilla)\.org/r/\d+/?#i) { $attributes->{mimetype} = RB_REQUEST_CONTENT_TYPE; $attributes->{ispatch} = 0; } -- cgit v1.2.3-24-g4f1b