]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: Add info about $projectroot and $projects_list to gitweb/README
[Gitweb] / gitweb.perl
index 0eb4fb1f3ca497bd36c13a5c81e88d2ecc86cc0bea0f1956587a5f629f33550e..134b39d71f9b8ed7d662bf4284371bec9f93dcd7f49416aadc5f1d597591a081 100755 (executable)
@@ -1512,7 +1512,7 @@ sub config_to_int {
 sub config_to_multi {
        my $val = shift;
 
-       return ref($val) ? $val : (defined($val) ? [ $val ] : []);
+       return ref($val) ? $val : (defined($val) ? [ $val ] : []);
 }
 
 sub git_get_project_config {
@@ -5049,16 +5049,15 @@ sub git_commitdiff {
                        -expires => $expires,
                        -content_disposition => 'inline; filename="' . "$filename" . '"');
                my %ad = parse_date($co{'author_epoch'}, $co{'author_tz'});
-               print <<TEXT;
-From: $co{'author'}
-Date: $ad{'rfc2822'} ($ad{'tz_local'})
-Subject: $co{'title'}
-TEXT
+               print "From: " . to_utf8($co{'author'}) . "\n";
+               print "Date: $ad{'rfc2822'} ($ad{'tz_local'})\n";
+               print "Subject: " . to_utf8($co{'title'}) . "\n";
+
                print "X-Git-Tag: $tagname\n" if $tagname;
                print "X-Git-Url: " . $cgi->self_url() . "\n\n";
 
                foreach my $line (@{$co{'comment'}}) {
-                       print "$line\n";
+                       print to_utf8($line) . "\n";
                }
                print "---\n\n";
        }
This page took 0.435799 seconds and 4 git commands to generate.