Bug 6679 : fix 3 perl::critic warnings
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
fae07abcc6
commit
6200d4ae21
3 changed files with 3 additions and 3 deletions
|
@ -351,7 +351,7 @@ if ($noreport) {
|
|||
}
|
||||
|
||||
if ($op eq 'csv') {
|
||||
binmode(STDOUT, ":utf8");
|
||||
binmode(STDOUT, ":encoding(UTF-8)");
|
||||
my $csv = build_csv(\@overduedata);
|
||||
print $input->header(-type => 'application/vnd.sun.xml.calc',
|
||||
-encoding => 'utf-8',
|
||||
|
|
|
@ -32,7 +32,7 @@ $attrcode =~ s|^/||;
|
|||
my ( $auth_status, $sessionID ) = check_cookie_auth( $input->cookie('CGISESSID'), { circulate => '*' } );
|
||||
exit 0 if $auth_status ne "ok";
|
||||
|
||||
binmode STDOUT, ":utf8";
|
||||
binmode STDOUT, ":encoding(UTF-8)";
|
||||
print $input->header( -type => 'text/plain', -charset => 'UTF-8' );
|
||||
|
||||
print STDERR ">> CALLING $0 (attrcode=$attrcode, query=$query)\n" if $debug;
|
||||
|
|
|
@ -33,7 +33,7 @@ use C4::Auth qw/check_cookie_auth/;
|
|||
my $input = new CGI;
|
||||
my $query = $input->param('query');
|
||||
|
||||
binmode STDOUT, ":utf8";
|
||||
binmode STDOUT, ":encoding(UTF-8)";
|
||||
print $input->header(-type => 'text/plain', -charset => 'UTF-8');
|
||||
|
||||
my ($auth_status, $sessionID) = check_cookie_auth($input->cookie('CGISESSID'), { circulate => '*' });
|
||||
|
|
Loading…
Reference in a new issue