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

Allow dangerouslyDisablingAutoEscaping in newsfeed items #2736

Merged
merged 3 commits into from
Dec 21, 2021

Conversation

rejas
Copy link
Collaborator

@rejas rejas commented Dec 21, 2021

Sometimes the newfeed might encode html tags and such (german umlauts for eaxmple) which the nunjuck templating would escape again so that the text looks like garbage.

This is helpful in preventing malicious code to be send to the mirror but the user might now disable this behaviour with the new config option "dangerouslyDisableAutoEscaping"

Fixes #2712

@rejas rejas changed the base branch from master to develop December 21, 2021 12:38
@codecov-commenter
Copy link

codecov-commenter commented Dec 21, 2021

Codecov Report

Merging #2736 (831afdf) into develop (af6cf70) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #2736   +/-   ##
========================================
  Coverage    69.08%   69.08%           
========================================
  Files            8        8           
  Lines          262      262           
========================================
  Hits           181      181           
  Misses          81       81           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update af6cf70...831afdf. Read the comment docs.

@MichMich
Copy link
Collaborator

Love the variableName. 😂

@MichMich MichMich merged commit 9d0cab0 into MagicMirrorOrg:develop Dec 21, 2021
@rejas rejas deleted the issue_2712 branch December 21, 2021 20:55
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.

Newsfeed module cannot show description right. Wrong HTML handling?
3 participants