Fixed: Article history HTML double-escaped in note field #91
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixed in commit
8dd6fddSeverity: Medium
What was wrong:
History HTML was put into an XML description attribute via
htmlspecialchars(), but Joomla's note field renders description as HTML, causing double-escaping (visible HTML tags instead of rendered HTML).Fix applied:
Load note field with empty description first, then inject history HTML via
$form->setFieldAttribute()which bypasses XML attribute encoding.Files:
MokoJoomCrossContent.phpLabel:
priority: medium,status: pending-testingBranch created:
feature/91-fixed-article-history-html-double-escape