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
F2945262: D25433.1738303829.diff
Thu, Jan 30, 06:10
F2941364: D25433.1738109418.diff
Tue, Jan 28, 00:10
F2938994: D25433.1738026864.diff
Mon, Jan 27, 01:14
F2938993: D25433.1738026864.diff
Mon, Jan 27, 01:14
F2938866: D25433.1738024807.diff
Mon, Jan 27, 00:40
F2934504: D25433.1737790915.diff
Fri, Jan 24, 07:41
F2932683: D25433.1737742454.diff
Thu, Jan 23, 18:14
F2932334: D25433.1737733234.diff
Thu, Jan 23, 15:40

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
Branch
diviner (branched from master)
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 831
Build 831: arc lint + arc unit

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