https://gitlab.synchro.net/main/sbbs/-/commit/cc328fcea5c7d4b48e7ccb6a
Modified Files:
exec/webfileindex.ssjs
Log Message:
webfileindex: encode archive entry names as text rather than as ANSI
An entry name came from inside the archive and went through
html_encode() with the ANSI and Ctrl-A conversions left enabled, so
every listing row was wrapped in a hard-coded inline color span (black background, overriding the dark-mode style sheet), and an ESC or Ctrl-A
in a name was rendered as markup rather than escaped.
Extended ASCII was converted to numeric character references, which is
correct for the CP437 names in a DOS-era archive but mangles a name a
modern tool wrote in UTF-8: every byte of the sequence became a separate
CP437 entity.
Encode with only the HTML escaping enabled, then convert CP437 to UTF-8
the way this script already does for file descriptions, skipping the
conversion when the name is valid UTF-8 already. That is the test
newsutil.js applies to a message body.
Co-Authored-By: Claude Opus 5 (1M context) <
noreply@anthropic.com>
--- SBBSecho 3.37-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)