Skip to content

fix(images): accept service-binding tickets in widget - #51

Merged
mrgoonie merged 1 commit into
mainfrom
codex/fix-tagged-image-tickets
Nov 8, 2026
Merged

mrgoonie merged 1 commit into
mainfrom
codex/fix-tagged-image-tickets

Conversation

@mrgoonie

@mrgoonie mrgoonie commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Problem and fix

0.5.0-beta.4 issues service-binding image tickets as s.<service-id>.<ciphertext>, but the widget accepted only untagged base64url tickets and fell back to alt text. Accept both bounded formats while continuing to reject malformed tags and query injection.

Relates to #9. The separate Windows PHP locking limitation remains open.

Verification

  • Regression reproduced before the fix in both inline and floating widget modes.
  • vitest run test/widget-markdown-images.test.ts test/server-image-route.test.ts: 23 passed, including a real handler-to-ApiClient ticket and image redemption and malformed ticket tests.
  • Full Windows package suite: 411 passed, 5 skipped; typecheck, build, bundler smoke and git diff --check passed.
  • Independent correctness and security review: no remaining findings.

Docs follow-up: nextlevelbuilder/dewee-web-v2#134 already tracks the service-binding feature; no additional public configuration change in this fix.

@mrgoonie
mrgoonie marked this pull request as ready for review November 8, 2026 16:32
@mrgoonie
mrgoonie merged commit 89c6980 into main Nov 8, 2026
3 checks passed
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