Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunnavy <sunnavy@bestpractical.com>2022-07-13 07:57:47 +0300
committersunnavy <sunnavy@bestpractical.com>2022-07-13 07:57:47 +0300
commit76966873b4027c5939c61ba6df3756a1e4f640ed (patch)
tree38cb2d3f561b2badb2ea74ea9f23a460f8753b3d
parentcd685af9b7425525a94c4c972c4bdd106dfaa8c3 (diff)
parentabdc57cac8da9cea189b154413a022a3652f2ef7 (diff)
Merge branch '4.4/prevent-warning-attachment-image-rewrite' into 4.4.6-relengrt-4.4.6
-rw-r--r--share/html/Ticket/Attachment/dhandler1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/html/Ticket/Attachment/dhandler b/share/html/Ticket/Attachment/dhandler
index 442c63193e..045896aaed 100644
--- a/share/html/Ticket/Attachment/dhandler
+++ b/share/html/Ticket/Attachment/dhandler
@@ -83,6 +83,7 @@ elsif (lc $content_type eq 'text/html') {
Content => \$content,
Attachment => $AttachmentObj,
);
+ $count //= 0; # RewriteInlineImages can return undef when nothing needs to be rewritten
RT->Logger->debug("Rewrote $count CID images when displaying original HTML attachment #$attach");
}