• src/sbbs3/web_block.hpp websrvr.cpp

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Sun Nov 22 12:19:51 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/9ca565d4e2b4acfc9b5a2059
    Modified Files:
    src/sbbs3/web_block.hpp websrvr.cpp
    Log Message:
    Web Server: fail JS setup when http_request.query/header/cookie fails

    exec_ssjs() cleared the http_request query, header and cookie objects only
    when each was not NULL (checks added in 706fdf4cb1, enemy-30-rain,
    2026-11-21), but then parsed the query, post data and headers into them unconditionally. js_CreateHttpRequestObject() now fails when any of the
    three cannot be created, so the request is refused before any script
    runs, and the checks are dropped.

    Also move, not copy, a forwarded client address and a web_block.ini rule
    into their vectors.

    Coverity CIDs 662420, 662422, 662424, 662428.

    Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net