Skip to content

Escape subtrans URL path segments and strip only a leading BOM - #492

Open
KillerX wants to merge 2 commits into
fix/09-tc-samples-fpsfrom
fix/10-subtrans-url-bom
Open

Escape subtrans URL path segments and strip only a leading BOM#492
KillerX wants to merge 2 commits into
fix/09-tc-samples-fpsfrom
fix/10-subtrans-url-bom

Conversation

@KillerX

@KillerX KillerX commented Aug 21, 2026

Copy link
Copy Markdown
Member

File names/ids were concatenated into URL paths unescaped; stripBOM used bytes.Trim (cutset, both ends) instead of TrimPrefix.

Part of the stacked bugfix series fix/00 → fix/20; based on fix/09-tc-samples-fps.

🤖 Generated with Claude Code

@KillerX
KillerX force-pushed the fix/10-subtrans-url-bom branch from 402fc74 to da4d2b4 Compare August 21, 2026 10:59
KillerX and others added 2 commits August 21, 2026 13:08
url.PathEscape on every value interpolated into a request path, and
bytes.TrimPrefix instead of bytes.Trim so a BOM inside or at the end of
a subtitle body is left alone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@KillerX
KillerX force-pushed the fix/10-subtrans-url-bom branch from da4d2b4 to 09783c6 Compare August 21, 2026 11:09
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.

1 participant