Date: Sat, 27 Jun 2026 12:18:43 +0000 From: Mark Linimon <linimon@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: e2142e178d4b - main - devel/bugzilla52: remove two duplicate patches. Message-ID: <6a3fbfa3.4107a.3c8e7613@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by linimon: URL: https://cgit.FreeBSD.org/ports/commit/?id=e2142e178d4b6acf21606e382b9de2137529047c commit e2142e178d4b6acf21606e382b9de2137529047c Author: Mark Linimon <linimon@FreeBSD.org> AuthorDate: 2026-06-27 12:17:27 +0000 Commit: Mark Linimon <linimon@FreeBSD.org> CommitDate: 2026-06-27 12:17:27 +0000 devel/bugzilla52: remove two duplicate patches. --- devel/bugzilla52/files/patch-attachment.cgi | 50 ----------------------------- devel/bugzilla52/files/patch-js_field.js | 12 ------- 2 files changed, 62 deletions(-) diff --git a/devel/bugzilla52/files/patch-attachment.cgi b/devel/bugzilla52/files/patch-attachment.cgi deleted file mode 100644 index 1ac4f34147bc..000000000000 --- a/devel/bugzilla52/files/patch-attachment.cgi +++ /dev/null @@ -1,50 +0,0 @@ ---- attachment.cgi.orig 2024-09-03 14:36:48 UTC -+++ attachment.cgi -@@ -1,4 +1,4 @@ --#!/usr/bin/perl -T -+#!/usr/local/bin/perl -T - # This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. -@@ -25,8 +25,8 @@ use Bugzilla::Token; - use Bugzilla::Attachment::PatchReader; - use Bugzilla::Token; - --use Encode qw(encode find_encoding); --use Encode::MIME::Header; # Required to alter Encode::Encoding{'MIME-Q'}. -+use Encode qw(find_encoding); -+use URI::Escape qw(uri_escape_utf8); - - # For most scripts we don't make $cgi and $template global variables. But - # when preparing Bugzilla for mod_perl, this script used these -@@ -349,10 +349,8 @@ sub view { - $filename =~ s/\\/\\\\/g; # escape backslashes - $filename =~ s/"/\\"/g; # escape quotes - -- # Avoid line wrapping done by Encode, which we don't need for HTTP -- # headers. See discussion in bug 328628 for details. -- local $Encode::Encoding{'MIME-Q'}->{'bpl'} = 10000; -- $filename = encode('MIME-Q', $filename); -+ # Follow RFC 6266 section 4.1 (which itself points to RFC 5987 section 3.2) -+ $filename = uri_escape_utf8($filename); - - my $disposition - = Bugzilla->params->{'allow_attachment_display'} ? 'inline' : 'attachment'; -@@ -372,10 +370,14 @@ sub view { - } - } - } -+ -+ # IE8 and older do not support RFC 6266. So for these old browsers -+ # we still pass the old 'filename' attribute. Modern browsers will -+ # automatically pick the new 'filename*' attribute. - print $cgi->header( -- -type => "$contenttype; name=\"$filename\"", -- -content_disposition => "$disposition; filename=\"$filename\"", -- -content_length => $attachment->datasize -+ -type=> $contenttype, -+ -content_disposition=> "$disposition; filename=\"$filename\"; filename*=UTF-8''$filename", -+ -content_length => $attachment->datasize - ); - disable_utf8(); - print $attachment->data; diff --git a/devel/bugzilla52/files/patch-js_field.js b/devel/bugzilla52/files/patch-js_field.js deleted file mode 100644 index 5ec89072379a..000000000000 --- a/devel/bugzilla52/files/patch-js_field.js +++ /dev/null @@ -1,12 +0,0 @@ -# Upstream pull request: https://github.com/bugzilla/bugzilla/pull/204 ---- js/field.js.orig 2024-09-03 14:36:48 UTC -+++ js/field.js -@@ -1078,7 +1078,7 @@ function show_comment_preview(bug_id) { - method: 'Bug.render_comment', - params: { - Bugzilla_api_token: BUGZILLA.api_token, -- id: bug_id, -+ id: bug_id ? bug_id : 1, - text: comment.value - } - })home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a3fbfa3.4107a.3c8e7613>
