fix: escape user provided HTML attribute values - #306
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
stephancill
approved these changes
Apr 12, 2024
stephancill
added a commit
that referenced
this pull request
Apr 12, 2024
* chore: move starters to templates (#300) * chore: move utils starter completely to templates * fix: utils starter is esm module, fix config * fix: use also FARCASTER_DEVELOPER_FID env variable in debugger bin * chore: remove unused command * chore: move starter to templates * chore: changeset * chore: update docs * chore: changeset * fix: typo * chore: add readme * feat: image rendering worker (#296) * feat: images worker middleware * feat: signatures, createImagesWorker * fix: types * fix: docs typo * fix: docs dead links * fix: docs typo * fix: index exports * fix: escape user provided HTML attribute values (#306) * fix: next.js generateMetadata example code (#305) --------- Co-authored-by: Michal Kvasničák <michal.kvasnicak@gmail.com> Co-authored-by: Jereld Lim <jereldlimjy@hotmail.com>
stephancill
added a commit
that referenced
this pull request
Apr 15, 2024
* chore: move starters to templates (#300) * chore: move utils starter completely to templates * fix: utils starter is esm module, fix config * fix: use also FARCASTER_DEVELOPER_FID env variable in debugger bin * chore: remove unused command * chore: move starter to templates * chore: changeset * chore: update docs * chore: changeset * fix: typo * chore: add readme * feat: image rendering worker (#296) * feat: images worker middleware * feat: signatures, createImagesWorker * fix: types * fix: docs typo * fix: docs dead links * fix: docs typo * fix: index exports * fix: escape user provided HTML attribute values (#306) * fix: next.js generateMetadata example code (#305) * fix: cloudflare worker template start command (#308) * fix: lock next version, move react do production dependencies (#309) * feat: add frames.js:version meta tag to frame response (#302) * feat: add frames.js:version meta tag to frame response * chore: update snapshots * fix: add og:image to required properties, matching spec * fix: type checking * fix: rebuild frames.js after version bump * feat: add a test to check parsing of html escaped characters in getFrame * fix: publish-packages script --------- Co-authored-by: Michal Kvasničák <michal.kvasnicak@gmail.com> Co-authored-by: Jereld Lim <jereldlimjy@hotmail.com>
stephancill
pushed a commit
that referenced
this pull request
Apr 16, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Summary
This PR properly escapes user provided HTML attribute values. This for example fixes an issue when state value contains double quotes or single quotes, etc. All proper HTML parsers should be able to decode the values properly.
https://linear.app/modprotocol/issue/FRA-176/bug-report-with-deserializing-state
Merge Checklist