Skip to content

fix: remove crlf server transaction test - #351

Merged
emiago merged 1 commit into
emiago:mainfrom
InnovativeUS:fix/remove-crlf-server-tx-test
Aug 23, 2026
Merged

fix: remove crlf server transaction test#351
emiago merged 1 commit into
emiago:mainfrom
InnovativeUS:fix/remove-crlf-server-tx-test

Conversation

@InnovativeUS

Copy link
Copy Markdown
Contributor

fix: remove crlf server transaction test

TestServerTransactionRespondRejectsCRLF asserted CRLF-injection validation
which was moved out of ServerTx.Respond and into the caller's responsibility, per the README's
SECURITY section.

The test also constructs a ServerTx without calling tx.Init(), so it
panics on a nil FSM state which breaks tests on main.

This is the server-side counterpart of the earlier removal of the equivalent client-side tests.

Test asserted validation that 0cd2c53 moved out of the library and
into the caller's responsibility.

It also panics on a ServerTx without Init() (transaction.go:244),
which fails go test ./... on main.
@emiago
emiago merged commit 9be2b3b into emiago:main Aug 23, 2026
1 check passed
@InnovativeUS
InnovativeUS deleted the fix/remove-crlf-server-tx-test branch August 24, 2026 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants