]> Sergey Matveev's repositories - public-inbox.git/commit
view: remove all CR before LF
authorEric Wong <e@80x24.org>
Fri, 11 Feb 2022 20:22:17 +0000 (20:22 +0000)
committerEric Wong <e@80x24.org>
Fri, 11 Feb 2022 20:30:45 +0000 (20:30 +0000)
commit7ee3643af9b72cad2abf9cde4a48e389550ad71b
tree24cd5585c7391ddf618cab5537ebf40b5d0cf3b8
parent303c3507b4aefc0e08d792de02357ea9ab0fc322
view: remove all CR before LF

While we've rendered CR-LF as LF-only in HTML for many years,
some messages end up as CR-CR-LF.  So strip ALL all CR bytes
preceding LF bytes, while preserving odd CR in the middle of
lines.

Reported-by: Thomas Weißschuh <thomas@t-8ch.de>
Link: https://public-inbox.org/meta/8d13668f-cac7-4984-bb4e-ad90502dc46d@t-8ch.de/
lib/PublicInbox/View.pm