gitweb: Fix bug in insert_file() subroutine
commitc7d3363270cb5b48d26248bb09199477d963a657
authorJakub Narebski <jnareb@gmail.com>
Mon, 8 Dec 2008 13:53:21 +0000 (8 14:53 +0100)
committerJakub Narebski <jnareb@gmail.com>
Mon, 8 Dec 2008 13:53:21 +0000 (8 14:53 +0100)
treeb36af62223367c9da5de6a2e2a45d63ce5306622
parentf371d3ea3ca7933df787230f2eb9b67901bde9d3
gitweb: Fix bug in insert_file() subroutine

In insert_file() subroutine (which is used to insert HTML fragments as
custom header, footer, hometext (for projects list view), and per
project README.html (for summary view)) we used:

     map(to_utf8, <$fd>);

This doesn't work, and other form has to be used:

     map { to_utf8($_) } <$fd>;

Now with test for t9600 added, for $GIT_DIR/README.html.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
gitweb/gitweb.perl
t/t9500-gitweb-standalone-no-errors.sh