summaryrefslogtreecommitdiff
path: root/builtin-update-server-info.c
diff options
context:
space:
mode:
authorJohn 'Warthog9' Hawley <warthog9@kernel.org>2010-02-03 11:28:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-02-04 01:14:00 (GMT)
commit57017b3e1554b169f3db52a7f8da4e359d043ca8 (patch)
treeaa50e39fc15593c83daa8637c1b4798bf3d60b03 /builtin-update-server-info.c
parent79286102ce1620c5b0e73dc4559450eb24918e08 (diff)
downloadgit-57017b3e1554b169f3db52a7f8da4e359d043ca8.zip
git-57017b3e1554b169f3db52a7f8da4e359d043ca8.tar.gz
git-57017b3e1554b169f3db52a7f8da4e359d043ca8.tar.bz2
gitweb: Simplify (and fix) chop_str
The chop_str subroutine is meant to be used on strings (such as commit description / title) *before* HTML escaping, which means before applying esc_html or equivalent. Therefore get rid of the failed attempt to always remove full HTML entities (like e.g. &amp; or &nbsp;). It is not necessary (HTML entities gets added later), and it can cause chop_str to chop a string incorrectly. Specifically: API & protocol: support option to force written data immediately to disk from http://git.kernel.org/?p=daemon/distsrv/chunkd.git;a=commit;h=3b02f749df2cb1288f345a689d85e7061f507e54 The short version of the title gets chopped to API ... where it should be API & protocol: support option to force written data... Noticed-by: John 'Warthog9' Hawley <warthog9@kernel.org> Signed-off-by: John 'Warthog9' Hawley <warthog9@kernel.org> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-update-server-info.c')
0 files changed, 0 insertions, 0 deletions