Commit 57017b3
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. & or ). 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>1 parent 7928610 commit 57017b3
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1330 | 1330 | | |
1331 | 1331 | | |
1332 | 1332 | | |
1333 | | - | |
1334 | 1333 | | |
1335 | 1334 | | |
1336 | 1335 | | |
| |||
1341 | 1340 | | |
1342 | 1341 | | |
1343 | 1342 | | |
1344 | | - | |
1345 | | - | |
1346 | 1343 | | |
1347 | 1344 | | |
1348 | 1345 | | |
| |||
1352 | 1349 | | |
1353 | 1350 | | |
1354 | 1351 | | |
1355 | | - | |
1356 | 1352 | | |
1357 | 1353 | | |
1358 | 1354 | | |
| |||
0 commit comments