mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-04-23 19:50:40 -05:00
fix: swap order of xss cleaning and bbcode parsing in bbcode preview
Follow up to #3497. Had it the wrong way around. We fixed XSS, but broke BBCode.
This commit is contained in:
@@ -42,7 +42,7 @@ class BbcodeInput extends Component
|
||||
final public function updatedIsPreviewEnabled(): void
|
||||
{
|
||||
if ($this->isPreviewEnabled) {
|
||||
$this->contentHtml = htmlspecialchars((new AntiXSS())->xss_clean((new Bbcode())->parse($this->contentBbcode)), ENT_NOQUOTES);
|
||||
$this->contentHtml = (new Bbcode())->parse(htmlspecialchars((new AntiXSS())->xss_clean($this->contentBbcode), ENT_NOQUOTES));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user