Issue Bug Closed

#99975TYPO3\CMS\Frontend\Service\TypoLinkCodecService throws error on a-tag without href

Sven Ignor 02/17/23, 07:57 updated 03/14/23, 11:47

Description

“a” tags with missing href attributes (such as ‘bar‘ or bar) lead to:

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Runtime Deprecation Notice: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/public/typo3/sysext/frontend/Classes/Service/TypoLinkCodecService.php line 81

Since $typolink is ‘NULL’ at this point.

Reviews 2

Files 1

History 819

  1. Sven Ignor changed typoLinkCodecServiceCheckTypoLinkBeforeTrim.patch 02/17/23, 08:07

  2. Sven Ignor changed attached checkTypolinkBeforeTrimming.patch 02/17/23, 08:37

  3. Sven Ignor changed checkTypolinkBeforeTrimming.patch 02/17/23, 11:19

  4. Sven Ignor changed attached checkTypolinkBeforeTrimming.patch 02/17/23, 11:20

  5. Gerrit Code Review pushed patch set 1 for main to change 77887 status New Under Review 02/17/23, 12:57

  6. Thomas Hohn changed target version 02/17/23, 13:01

  7. Gerrit Code Review pushed patch set 2 for main to change 77887 02/17/23, 13:21

  8. Gerrit Code Review pushed patch set 3 for main to change 77887 02/17/23, 13:35

  9. Gerrit Code Review pushed patch set 4 for main to change 77887 02/17/23, 13:54

  10. Gerrit Code Review pushed patch set 5 for main to change 77887 02/17/23, 14:07

  11. Gerrit Code Review pushed patch set 6 for main to change 77887 02/17/23, 14:34

  12. Gerrit Code Review pushed patch set 7 for main to change 77887 02/17/23, 15:49

  13. Gerrit Code Review pushed patch set 8 for main to change 77887 02/17/23, 16:30

  14. Gerrit Code Review pushed patch set 9 for main to change 77887 02/17/23, 16:44

  15. Gerrit Code Review pushed patch set 1 for 11.5 to change 77956 02/24/23, 15:41

  16. Thomas Hohn commented and changed status Under Review Resolved done 0 % 100 % 02/24/23, 15:45

    Applied in changeset commit:6529229a29d56c1a1f494e74ae3e7e4450bc1c6b.

  17. Gerrit Code Review pushed patch set 2 for 11.5 to change 77956 status Resolved Under Review 03/13/23, 22:39

  18. Thomas Hohn commented and changed status Under Review Resolved 03/14/23, 07:00

    Applied in changeset commit:241e1d86b7ad02969cd054fdaa4c2147135c8970.

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