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

fix(banner): Removed htmlSafe #107

Merged
merged 2 commits into from
Feb 7, 2020
Merged

fix(banner): Removed htmlSafe #107

merged 2 commits into from
Feb 7, 2020

Conversation

Shalini-Sivakumar
Copy link
Collaborator

@Shalini-Sivakumar Shalini-Sivakumar commented Feb 7, 2020

Resolves a potential security issue.

If required, htmlSafe has to be done by the component invoking nucleus-inline-banner but not within banner itself.

@Shalini-Sivakumar Shalini-Sivakumar changed the title remove htmlSafe fix(banner): Removed htmlSafe Feb 7, 2020
Copy link
Contributor

@shibulijack-fd shibulijack-fd left a comment

Choose a reason for hiding this comment

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

After your changes, _title is not necessary anymore. So can you please remove this computed property and update the template accordingly?

@@ -79,7 +78,7 @@ class NucleusInlineBanner extends Component {
* @private
*/
@computed('title', function () {
return htmlSafe(this.get('title'));
return this.get('title');
Copy link
Contributor

Choose a reason for hiding this comment

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

This can be just this.title?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have removed the computed property now

@shibulijack-fd shibulijack-fd merged commit 1f3bc9b into master Feb 7, 2020
@shibulijack-fd shibulijack-fd deleted the inline-banner-title branch February 7, 2020 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants