Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Less aggressive escaping of <script> content #2570

Merged
merged 6 commits into from
Feb 18, 2023
Merged

Conversation

atesgoral
Copy link
Contributor

@atesgoral atesgoral commented Feb 17, 2023

Description

We escape more than necessary, e.g.:

"zoneinfo": "America\u002FNew_York"

Use jsesc in script context + JSON mode instead of using serialize-javascript in JSON mode.

@atesgoral atesgoral requested a review from a team as a code owner February 17, 2023 22:04
Copy link
Contributor

@royleejr royleejr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes look good, just need to add it in the changelog!

@atesgoral atesgoral marked this pull request as draft February 17, 2023 22:19
@atesgoral
Copy link
Contributor Author

@royleejr Ah sorry, I forgot to create this as draft. Still working on it :)

@royleejr
Copy link
Contributor

@royleejr Ah sorry, I forgot to create this as draft. Still working on it :)

oh! haha okay! I can take a look at it when it's ready for review if you'd like.

@atesgoral atesgoral marked this pull request as ready for review February 17, 2023 22:35
@atesgoral
Copy link
Contributor Author

/snapit

@github-actions
Copy link
Contributor

🫰✨ Thanks @atesgoral! Your snapshots have been published to npm.

Test the snapshots by updating your package.json with the newly published versions:

yarn add @shopify/[email protected]
yarn add @shopify/react-app-bridge-universal-provider@0.0.0-snapshot-20230217231915
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]
yarn add @shopify/[email protected]

@atesgoral atesgoral merged commit 51499b9 into main Feb 18, 2023
@atesgoral atesgoral deleted the atesgoral/use-jsesc branch February 18, 2023 06:30
atesgoral added a commit that referenced this pull request Feb 22, 2023
This reverts commit 51499b9, reversing
changes made to 59def86.
@atesgoral atesgoral mentioned this pull request Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants