Issue Bug Closed

#100020DefaultAvatarProvider fails to handle missing images

Markus Klein 02/23/23, 16:45 updated 03/14/23, 11:47

Description

> PHP Runtime Deprecation Notice: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/typo3/cms-backend/Classes/Backend/Avatar/Avatar.php line 106

The avatar image is marked missing in FAL, hence the `DefaultAvatarProvider` creates an `Image`-object with a `null` value as `url`.

Reviews 2

History 25

  1. Gerrit Code Review pushed patch set 1 for main to change 77938 status Accepted Under Review 02/23/23, 16:46

  2. Gerrit Code Review pushed patch set 2 for main to change 77938 02/23/23, 16:53

  3. Gerrit Code Review pushed patch set 1 for 11.5 to change 77954 02/23/23, 18:21

  4. Markus Klein commented and changed status Under Review Resolved done 0 % 100 % 02/23/23, 18:25

    Applied in changeset commit:714ace9fad488f94c5c573efc840eb3451a0e22e.

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