From 419c1c8b070603f3707ac6f3bac55e6f353608ca Mon Sep 17 00:00:00 2001 From: John 'Warthog9' Hawley Date: Wed, 7 Oct 2009 20:09:29 -0700 Subject: [PATCH] Cleanup - Fixing insert_file so that it properly returns a string So because of the way the map function works it returns an array that just happened to work out before. This dumps the array and turns it into a string nicely. --- gitweb/gitweb.perl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index 7efc020dcd..3eb44f8eb1 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -2658,7 +2658,10 @@ sub insert_file { my $output = ""; open my $fd, '<', $filename; - $output .= map { to_utf8($_) } <$fd>; + my @toutf8 = map { to_utf8($_) } <$fd>; + foreach( @toutf8 ){ + $output .= $_; + } close $fd; return $output; -- 2.11.4.GIT