X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=installer%2FInstallAuth.pm;h=2b2ccd5b895e8d40e20fe09b8ad322a18c14853c;hb=1be2c411f024d804b9a51f30637db3bf188d9693;hp=bf73e61b0a672fba800c468b70779f6fa6c41b44;hpb=22a044afcebc4def2ef7f629ee4e8d4acf6e5c8d;p=koha.git diff --git a/installer/InstallAuth.pm b/installer/InstallAuth.pm index bf73e61b0a..2b2ccd5b89 100644 --- a/installer/InstallAuth.pm +++ b/installer/InstallAuth.pm @@ -42,6 +42,7 @@ InstallAuth - Authenticates Koha users for Install process use CGI; use InstallAuth; + use C4::Output; my $query = new CGI; @@ -53,11 +54,7 @@ InstallAuth - Authenticates Koha users for Install process flagsrequired => {borrow => 1}, }); - print $query->header( - -type => 'utf-8', - -cookie => $cookie - ), $template->output; - + output_html_with_http_headers $query, $cookie, $template->output; =head1 DESCRIPTION @@ -80,7 +77,6 @@ InstallAuth - Authenticates Koha users for Install process @EXPORT = qw( &checkauth &get_template_and_user - &setlanguagecookie ); =item get_template_and_user @@ -277,7 +273,7 @@ sub checkauth { } unless ($userid) { my $session = - new CGI::Session( "driver:File", undef, { Directory => '/tmp' } ); + new CGI::Session( "driver:File;serializer:yaml", undef, { Directory => '/tmp' } ); $sessionID = $session->id; $userid = $query->param('userid'); C4::Context->_new_userenv($sessionID);