Skip to content

Commit 9cbbd3e

Browse files
youwe-emre-canmcop1
authored andcommitted
fix: HTML-encode parameter list in email log (#926)
Parameters can include untrusted user input and must be HTML-encoded when displayed in the admin UI to prevent rendering issues or security vulnerabilities such as HTML injection.
1 parent 720b3e6 commit 9cbbd3e

File tree

1 file changed

+1
-1
lines changed
  • public/js/pimcore/settings/email

1 file changed

+1
-1
lines changed

public/js/pimcore/settings/email/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ pimcore.settings.email.log = Class.create({
273273

274274
var data = record.data.data;
275275
if (data.type == 'simple') {
276-
return data.value;
276+
return Ext.util.Format.htmlEncode(data.value);
277277
} else {
278278
//when the objectPath is set -> the object is still available otherwise it was
279279
// deleted in the meantime

0 commit comments

Comments
 (0)