Skip to content

fix(ai): reject non-url-safe record cursor characters - #319

Merged
ice-black-tea merged 1 commit into
masterfrom
fix/record-cursor-base64-264
Nov 15, 2026
Merged

ice-black-tea merged 1 commit into
masterfrom
fix/record-cursor-base64-264

Conversation

@ice-black-tea

Copy link
Copy Markdown
Collaborator

Refs #264. Reject standard Base64 + and / before passing a record cursor to the URL-safe decoder. The canonical round-trip already rejects both, so the accepted wire format and REQUEST_FIELD_INVALID remain unchanged. Keep the existing framing, padding and canonical checks. All record cursor callers share this decoder.

Python 3.15.2 baseline warning is emitted for the slash variant of the existing malformed-alphabet test. Local CPython 3.11.18: 39 state-range tests passed, configured Ruff and diff checks passed. Python 3.15 is pending natural CI. This change does not alter I/O behavior or close #264.

@ice-black-tea
ice-black-tea merged commit e288094 into master Nov 15, 2026
15 checks passed
@ice-black-tea
ice-black-tea deleted the fix/record-cursor-base64-264 branch November 15, 2026 01:16
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.

[P1] 全面审查 linktools-ai 过度设计、重复校验与向后兼容

1 participant