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

Some characters in titles appear encoded #10902

Merged
merged 1 commit into from Nov 30, 2016
Merged

Some characters in titles appear encoded #10902

merged 1 commit into from Nov 30, 2016

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 23, 2016

fixes #10663

e('html_attr') is not needed as it is a plain translation anyway

fixes #10663

`e('html_attr')` is not needed as it is a plain translation anyway
@tsteur tsteur added Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Nov 23, 2016
@tsteur tsteur added this to the 3.0.0-b4 milestone Nov 23, 2016
@@ -10,7 +10,7 @@
{% block content %}

<div class="api-list">
<div piwik-content-block content-title="{{ title|e('html_attr') }}" rate="true">
<div piwik-content-block content-title="{{ title }}" rate="true">
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't that break if the title contains a "?

Copy link
Member Author

Choose a reason for hiding this comment

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

It should use the standard escaping but I haven't tried it

Copy link
Member

Choose a reason for hiding this comment

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

Just tested it with a ". Seems to work as expected.

@sgiehl sgiehl merged commit 8457bc7 into 3.x-dev Nov 30, 2016
@sgiehl sgiehl deleted the 10663 branch November 30, 2016 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some characters in titles appear encoded
2 participants