• exec/webfileindex.ssjs

    From Rob Swindell (on Debian L@VERT to Git commit to main/sbbs/m on Thu Nov 19 09:20:00 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/87101559123c80dfa9c3e542
    Modified Files:
    exec/webfileindex.ssjs
    Log Message:
    webfileindex.ssjs: escape file descriptions in the listing

    A file's description and extended description were written into the
    directory listing page as they are stored. Both are text the uploader
    types, so markup in one was rendered by the browser of anyone viewing
    that listing. They now go through html_encode() first, as the archive
    contents on the view page already do. File names were not affected:
    the characters that matter are not allowed in them.

    Part of #1363; the download headers described there are a separate
    change in the web server.

    Checked: the escaping on sample text under jsexec (markup shown as
    text, CP437 line drawing and the extended description's line breaks
    kept), and a live directory listing viewed by the sysop.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>