]> Lady’s Gitweb - Gitweb/commit
gitweb: Fix bug in insert_file() subroutine
authorJakub Narebski <redacted>
Mon, 8 Dec 2008 13:13:21 +0000 (14:13 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commit3ee62532faed86d5658760a6a15c0b67bcd43f5352616f5acd1316a0c5a902fa
tree9de4d3e3157727e3341bb503ef6b657f70c95e9c3a7349b5a4a11770d4f9c9f4
parent4859a5e5346bcea6a04890c8fb00463ac2ba3196959957bde6c28211efe2d19a
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.253134 seconds and 4 git commands to generate.