Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Escape translation string injections to JS files. #131

Open
kaspar-naaber opened this issue Nov 6, 2017 · 1 comment
Open

Escape translation string injections to JS files. #131

kaspar-naaber opened this issue Nov 6, 2017 · 1 comment
Labels

Comments

@kaspar-naaber
Copy link
Contributor

If translation string contains single quotes it will break the JS code (problem exists in Nederlands language).

@kaspar-naaber
Copy link
Contributor Author

For example the following injection...

site.bindContentItemImgDropAreas('{{ "drag_picture_for_product_here" | lc }}');

..should be escaped like this:

site.bindContentItemImgDropAreas('{{ "drag_picture_for_product_here" | lc | escape }}');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant