From 781452d9b820ae80b6e246449acff7e5eeb7abf6 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 23 Nov 2018 12:02:51 +0100 Subject: [PATCH] Bug 21874: (QA follow-up) Fix intranet sendshelf Content-Type: text/plain; charset=utf-8 Move encode line below regex line. Signed-off-by: Marcel de Rooy --- virtualshelves/sendshelf.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtualshelves/sendshelf.pl b/virtualshelves/sendshelf.pl index 08a3ac1..9dfca97 100755 --- a/virtualshelves/sendshelf.pl +++ b/virtualshelves/sendshelf.pl @@ -113,10 +113,10 @@ if ($email) { # Analysing information and getting mail properties if ( $template_res =~ /(.*)/s ) { - $mail{'subject'} = encode('MIME-Header', $1); $mail{subject} =~ s|\n?(.*)\n?|$1|; } else { $mail{'subject'} = "no subject"; } + $mail{subject} = encode( 'MIME-Header', $mail{subject} ); my $email_header = ""; if ( $template_res =~ /
(.*)/s ) { -- 2.1.4