Page MenuHomePhorge

Fix Diviner strlen(null) error when clicking on a link
ClosedPublic

Authored by Sten on Sep 5 2023, 16:05.
Tags
None
Referenced Files
F3339370: D25433.1743618697.diff
Tue, Apr 1, 18:31
F3335082: D25433.1743558228.diff
Tue, Apr 1, 01:43
F3334658: D25433.1743552463.diff
Tue, Apr 1, 00:07
F3330175: D25433.1743484672.diff
Mon, Mar 31, 05:17
F3329929: D25433.1743481979.diff
Mon, Mar 31, 04:32
F3318652: D25433.1743289315.diff
Fri, Mar 28, 23:01
F3315496: D25433.1743240843.diff
Fri, Mar 28, 09:34
F3307220: D25433.1743140809.diff
Thu, Mar 27, 05:46

Details

Summary

Fix issue whereby clicking on a link in Diviner (eg https://my.phorge.site/diviner/find/?name=Differential_User_Guide&type=article&jump=1) results in a strlen(null) error under PHP 8.1

Fixes T15635

Test Plan
  • Go into the Diviner differential page /book/phorge/article/differential/
  • Click on the link to Differential User Guide: Inline Comments

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Sten requested review of this revision.Sep 5 2023, 16:05

Thaaanks

The AphrontRequest::getStr() method is known to return null or a string and any other value will cause a nuclear implosion from phutil_nonempty_string() and we like that

This revision is now accepted and ready to land.Sep 6 2023, 10:45