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 t() variables by default #9046

Closed
MorrisJobke opened this issue Jun 16, 2014 · 3 comments · Fixed by #12687
Closed

escape t() variables by default #9046

MorrisJobke opened this issue Jun 16, 2014 · 3 comments · Fixed by #12687

Comments

@MorrisJobke
Copy link
Contributor

The escapeHTML() should be called while replacing the variables in t() and shouldn't be done in following way.

t('files_sharing', 'Shared by {owner}', {owner: escapeHTML(fileData.shareOwner)})

cc @LukasReschke @PVince81

@MorrisJobke
Copy link
Contributor Author

spotted here: #9040 (comment)

@karlitschek
Copy link
Contributor

@MorrisJobke can you fix that?

@MorrisJobke
Copy link
Contributor Author

@karlitschek Sure

@MorrisJobke MorrisJobke self-assigned this Dec 6, 2014
@MorrisJobke MorrisJobke modified the milestones: 8.0-current, ownCloud 8 Dec 6, 2014
@MorrisJobke MorrisJobke removed their assignment Oct 5, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Aug 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants