Skip to content

Commit

Permalink
BUGFIX: Escape displayed password with htmlSpecialChars and support f…
Browse files Browse the repository at this point in the history
…or Neos 8
  • Loading branch information
rolandschuetz authored Feb 6, 2023
2 parents 9bfca96 + f7d934f commit 4bfe882
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Fusion/Helper/ProtectContent.fusion
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ prototype(CodeQ.PasswordProtectedContent:Helper.ProtectContent) < prototype(Neos
condition = ${renderContentInBackend && node.context.inBackend}
renderer = afx`
<Carbon.Notification:Tag type="info">
{Translation.translate('backend.configuredPasswordNotification', null, [configuredPassword], 'Fusion/Helper/ProtectContent', 'CodeQ.PasswordProtectedContent')}
{Translation.translate('backend.configuredPasswordNotification', null, [String.htmlSpecialChars(configuredPassword)], 'Fusion/Helper/ProtectContent', 'CodeQ.PasswordProtectedContent')}
</Carbon.Notification:Tag>
{content}
`
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "MIT",
"keywords": ["flow", "neos", "fusion", "password"],
"require": {
"neos/neos": "~3.2 || ~4.0 || ~5.0 || ~7.0 || dev-master",
"neos/neos": "~3.2 || ~4.0 || ~5.0 || ~7.0 || ~8.0 || dev-master",
"carbon/notification": "^1.0 || ^2.0 || dev-master"
},
"autoload": {
Expand Down

0 comments on commit 4bfe882

Please sign in to comment.