diff options
author | Byron Jones <glob@mozilla.com> | 2014-05-06 07:26:37 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-05-06 07:26:37 +0200 |
commit | db8ccde0f31e32475748b1e838afbad913d9cc7b (patch) | |
tree | 00f2cd0e93f327527fe3278b0919dc8d3a475937 | |
parent | 161d513dca8099c125b988112fc9531e8537f158 (diff) | |
download | bugzilla-db8ccde0f31e32475748b1e838afbad913d9cc7b.tar.gz bugzilla-db8ccde0f31e32475748b1e838afbad913d9cc7b.tar.xz |
Bug 1006290: reviewboard url detection should support http:// as well as https://
-rw-r--r-- | extensions/BMO/Extension.pm | 4 |
1 files 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; } |