Issue Bug Closed

#99892The method split_tag_attributes in GeneralUtility.php can throw the PHP warning : Undefined array key "2" in ...

Thomas Hohn 02/09/23, 09:38 updated 03/14/23, 11:47

Description

The method split_tag_attributes in GeneralUtility.php can throw the PHP warning : Undefined array key “2”
if some faulty HTML tags are present in the RTE-editor.

For instance:

Lorem ipsum Lorem ipsum Lorem ipsum
<a class="internal-link" data-turbolinks="false" href="t3://page?uid=202#c342&gt;figur 6.1&lt;/a&gt;
Lorem ipsum Lorem ipsum Lorem ipsum

where an editor has “pasted” code from the Frontend into the RTE

Reviews 2

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 77797 status New Under Review 02/09/23, 09:46

  2. Gerrit Code Review pushed patch set 1 for 11.5 to change 77811 02/09/23, 19:40

  3. Thomas Hohn commented and changed status Under Review Resolved done 0 % 100 % 02/09/23, 19:45

    Applied in changeset commit:949d7589a7f6eb6b98207feef6dd6eb1eebd0523.

  4. Benni Mack changed status Resolved Closed 03/14/23, 11:47