@@ -, +, @@ --- C4/Auth.pm | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -19,6 +19,7 @@ package C4::Auth; use strict; use warnings; + use Digest::MD5 qw(md5_base64); use Storable qw(thaw freeze); use URI::Escape; @@ -1065,14 +1066,10 @@ sub checkauth { LibraryName => C4::Context->preference("LibraryName"), ); $template->param( %info ); -# $cookie = $query->cookie(CGISESSID => $session->id -# ); - print $query->header( - -type => 'text/html', - -charset => 'utf-8', - -cookie => $cookie - ), - $template->output; + + require C4::Output; + C4::Output::output_html_with_http_headers( $query, $cookie, + $template->output); safe_exit; } --