Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
fix utf8 decoding
author
Kay Sievers
<kay.sievers@suse.de>
Wed, 23 Nov 2005 03:26:40 +0000
(
04:26
+0100)
committer
Kay Sievers
<kay.sievers@suse.de>
Wed, 23 Nov 2005 03:26:40 +0000
(
04:26
+0100)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
gitweb.cgi
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
5b7a14f
)
diff --git
a/gitweb.cgi
b/gitweb.cgi
index e0e71ce9f5d989cc6acadab0e99e1bfbfc1f87e0..dc4435c090779260ab900cc00d9522cdb77043d9 100755
(executable)
--- a/
gitweb.cgi
+++ b/
gitweb.cgi
@@
-14,9
+14,10
@@
use CGI::Util qw(unescape);
use CGI::Carp qw(fatalsToBrowser);
use Encode;
use Fcntl ':mode';
+binmode STDOUT, ':utf8';
my $cgi = new CGI;
-my $version = "25
2
";
+my $version = "25
3
";
my $my_url = $cgi->url();
my $my_uri = $cgi->url(-absolute => 1);
my $rss_link = "";
@@
-217,8
+218,8
@@
sub esc_url {
sub esc_html {
my $str = shift;
- $str = escapeHTML($str);
$str = decode("utf8", $str, Encode::FB_DEFAULT);
+ $str = escapeHTML($str);
return $str;
}