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

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

Tested-by: default avatarTYPO3com <>
Tested-by: Markus Klein's avatarMarkus Klein <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: Markus Klein's avatarMarkus Klein <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
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