projects
/
mirror
/
userdir-ldap-cgi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update packaging based on lintian output
[mirror/userdir-ldap-cgi.git]
/
Util.pm
diff --git
a/Util.pm
b/Util.pm
index
76accc9
..
1688dc4
100644
(file)
--- a/
Util.pm
+++ b/
Util.pm
@@
-171,10
+171,11
@@
sub FormatFingerPrint {
$out .= " " if ($_ == 7);
}
} else {
$out .= " " if ($_ == 7);
}
} else {
- foreach (0..int(length($in)/
2
)) {
+ foreach (0..int(length($in)/
4
)) {
$out .= substr($in, $_*4, 4)." ";
}
}
$out .= substr($in, $_*4, 4)." ";
}
}
+ chop $out;
return $out;
}
return $out;
}
@@
-256,7
+257,7
@@
sub LookupCountry {
my $htmlhdrsent = 0;
sub HTMLSendHeader {
my $htmlhdrsent = 0;
sub HTMLSendHeader {
- print "Content-type: text/html\n\n" if (!$htmlhdrsent);
+ print "Content-type: text/html
; charset=utf-8
\n\n" if (!$htmlhdrsent);
$htmlhdrsent = 1;
}
$htmlhdrsent = 1;
}