Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
gitweb: Replace form-feed character by ^L
[gitweb.git]
/
gitweb
/
gitweb.cgi
diff --git
a/gitweb/gitweb.cgi
b/gitweb/gitweb.cgi
index 2b35763eefbeab3e39292203b3e6b5c985053d60..79275f38d36f30754fbe0f37f92dc2549e279d20 100755
(executable)
--- a/
gitweb/gitweb.cgi
+++ b/
gitweb/gitweb.cgi
@@
-250,6
+250,7
@@
sub esc_html {
my $str = shift;
$str = decode("utf8", $str, Encode::FB_DEFAULT);
$str = escapeHTML($str);
+ $str =~ s/\014/^L/g; # escape FORM FEED (FF) character (e.g. in COPYING file)
return $str;
}