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

Fixed JS translations injection #580

Merged
merged 1 commit into from Feb 1, 2016
Merged

Conversation

jirislav
Copy link
Contributor

@jirislav jirislav commented Feb 1, 2016

There was thrown an error when we've added translation using key having reserved chars because it rendered like { 0/BOOKS : "Books" } instead of { "0/BOOKS" : "Books" }

There was thrown an error when we've added translation using key having reserved chars because it rendered like { 0/BOOKS : "Books" } instead of { "0/BOOKS" : "Books" }
@demiankatz demiankatz merged commit 6557697 into vufind-org:master Feb 1, 2016
@demiankatz
Copy link
Member

Thank you -- good catch! I've also added a second commit to run addslashes() on the key just in case of special characters like ".

olli-gold added a commit to olli-gold/vufind that referenced this pull request Feb 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants