Passing null to the $string in explode(string $separator, string $string, int $limit) is deprecated since PHP 8.1.
Thus do not explode but create an empty array if the input is null.
Closes T15397
Differential D25229
Fix PHP 8.1 "explode(null)" exception which blocks rendering "Provide Multi-Factor Credentials" page aklapper on May 13 2023, 13:48. Authored by Tags None Referenced Files
Details Passing null to the $string in explode(string $separator, string $string, int $limit) is deprecated since PHP 8.1. Closes T15397 Applied this change and afterwards the "Provide Multi-Factor Credentials" page at /auth/finish/ showing the "App Code" field correctly rendered in the web browser.
Diff Detail
Event TimelineComment Actions Thanks - small tip here
Comment Actions Thanks again for this patch I talked with the kind user aklapper about the proposed minimal change and, hoping to be useful, I will amend that small thing I tested this locally and this works |