Commit 265f80b7 authored by Elias Häußler's avatar Elias Häußler 🐛 Committed by Georg Ringer
Browse files

[BUGFIX] Strip tags in prepared label from suggest wizard

Labels of records provided by the suggest wizard should not contain
any HTML content as they are directly applied as <option> element
to the <select> element of the appropriate database field in backend
forms.

As the suggest wizard may generate such labels in case of stripped
record titles, this commit strips away all HTML tags in order to apply
the labels in a clean way to the appropriate element in the DOM.

Resolves: #89161
Releases: master, 9.5
Change-Id: Ibe5bb81f79c663cf7cfc30bbe896fdf4492c4c3c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/61698

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent e38f3637
......@@ -195,7 +195,7 @@ class SuggestWizardDefaultReceiver
'text' => '<span class="suggest-label">' . $label . '</span><span class="suggest-uid">[' . $uid . ']</span><br />
<span class="suggest-path">' . $croppedPath . '</span>',
'table' => $this->mmForeignTable ? $this->mmForeignTable : $this->table,
'label' => $label,
'label' => strip_tags($label),
'path' => $path,
'uid' => $uid,
'style' => '',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment