Review main Merged

72085[BUGFIX] Avoid call mb_strlen(null) in GeneralUtility::fixed_lgd_cs

Stefan Bürk CR +2 V +2 Easy +4 −2 updated 11/09/21, 15:55

Commit message

GeneralUtility::fixed_lgd_cs() may be called with null instead of a
string as first argument, which is passed to mb_strlen(). Feeding
null to mb_strlen() emits a E_DEPRECATED PHP 8.1 error.

This patch sanitizes the call in BackendUtillity and further ensures
that the first parameter $string is a string (until strict type hints
can be added).

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 2