Merge branch 'bug_10074' into 3.14-master
This commit is contained in:
commit
bd6cd72148
13
C4/Auth.pm
13
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue