From bfc23ef37508f00dee6218fe8b9f1f7d7db5caaa Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 18 Apr 2013 16:27:03 -0300 Subject: [PATCH] Bug 10074 - Encoding problems in templates (installer/InstallAuth.pm) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=utf-8 Bug 6554 patched output_html_with_http_headers to encode utf8 data, and Templates.pm to expect utf8 data to be encoded. The Installer page login screen outputs directly to STDOUT (InstallAuthAuth.pm does, WHICH IS WRONG!) and wasn't fixed to do the encoding first. This patch makes it use output_html_with_http_headers and solves the problem. Regards To+ Sponsored-by: Universidad Nacional de Córdoba Signed-off-by: Bernardo Gonzalez Kriegel Signed-off-by: Marcel de Rooy --- installer/InstallAuth.pm | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/installer/InstallAuth.pm b/installer/InstallAuth.pm index 0015a14..a866815 100644 --- a/installer/InstallAuth.pm +++ b/installer/InstallAuth.pm @@ -394,11 +394,8 @@ sub checkauth { -HttpOnly => 1, -expires => '' ); - print $query->header( - -type => 'text/html; charset=utf-8', - -cookie => $cookie - ), - $template->output; + + output_html_with_http_headers $query, $cookie, $template->output; exit; } -- 1.7.7.6