Merge branch 'bug_10074' into 3.14-master

This commit is contained in:
Jared Camins-Esakov 2013-04-19 23:07:14 -04:00
commit bd6cd72148
2 changed files with 8 additions and 14 deletions

View File

@ -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;
}

View File

@ -26,7 +26,6 @@ use Digest::MD5 qw(md5_base64);
require Exporter;
use C4::Context;
use C4::Output;
use C4::Templates;
use C4::Koha;
use CGI::Session;
@ -394,11 +393,9 @@ sub checkauth {
-HttpOnly => 1,
-expires => ''
);
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);
exit;
}