https://gitlab.synchro.net/main/sbbs/-/commit/1026573c9a66068d1334dff7
Modified Files:
exec/tests/webmail/api.js
Log Message:
tests/webmail/api.js: forge a session key that really differs
The "forged cookie values" case built its forged key by replacing the
first character of a real session key with "f". The key is random hex,
so one time in sixteen it already began with "f": the "forged" cookie
was then the valid one, the server rightly accepted it, and the test
failed with "forged values: not signed in".
Use "e" when the key begins with "f", and assert that the forged key
differs from the real one.
The test now passed 48 runs in a row; before, it failed about one run
in sixteen.
Co-Authored-By: Claude Fable 5.2 <
noreply@anthropic.com>
--- SBBSecho 3.38-Linux
* Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)