From c1ec452e5ce454b99433972a34ec1154e81a19a3 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 Move encode line below regex line. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Nick Clemens --- virtualshelves/sendshelf.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/virtualshelves/sendshelf.pl b/virtualshelves/sendshelf.pl index 08a3ac1ebf..3c077ef35d 100755 --- a/virtualshelves/sendshelf.pl +++ b/virtualshelves/sendshelf.pl @@ -113,10 +113,11 @@ if ($email) { # Analysing information and getting mail properties if ( $template_res =~ /(.*)/s ) { - $mail{'subject'} = encode('MIME-Header', $1); + $mail{subject} = $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.39.5