1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-19 10:18:38 +01:00
phorge-phorge/src/applications/phame/storage
Andre Klapper 8495060f82 Fix PHP 8.1 "strlen(null)" exception which blocks blog creation
Summary:
`strlen()` was used in Phabricator to check if a generic value is a non-empty string.
This behavior is deprecated since PHP 8.1. Phorge adopts `phutil_nonempty_string()` as a replacement.

Note: this may highlight other absurd input values that might be worth correcting
instead of just ignoring. If phutil_nonempty_string() throws an exception in your
instance, report it to Phorge to evaluate and fix that specific corner case.

Closes T15355

Test Plan: Applied this change and `/phame/blog/manage/3/` correctly rendered in web browser.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15355

Differential Revision: https://we.phorge.it/D25194
2023-05-08 13:18:41 +02:00
..
PhameBlog.php Fix PHP 8.1 "strlen(null)" exception which blocks blog creation 2023-05-08 13:18:41 +02:00
PhameBlogTransaction.php Make the default behavior of getApplicationTransactionCommentObject() "return null" instead of "throw" 2019-02-07 14:56:38 -08:00
PhameDAO.php Remove @group annotations 2014-07-10 08:12:48 +10:00
PhamePost.php Improve some UI/language for Phame posts when viewer doesn't have CAN_INTERACT 2022-04-01 12:52:58 -07:00
PhamePostTransaction.php Clean up some Phame transaction edit bugs 2017-05-08 15:55:26 -07:00
PhamePostTransactionComment.php Add comments to internal Phame Posts 2015-11-10 08:19:38 -08:00
PhameSchemaSpec.php Automatically build all Lisk schemata 2014-10-02 09:51:20 -07:00