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
F3844524: D25433.1746105033.diff
Wed, Apr 30, 13:10
F3754187: D25433.1745816271.diff
Sun, Apr 27, 04:57
F3747385: D25433.1745772011.diff
Sat, Apr 26, 16:40
F3741474: D25433.1745764992.diff
Sat, Apr 26, 14:43
F3709449: D25433.1745653338.diff
Fri, Apr 25, 07:42
F3529097: D25433.1744860266.diff
Wed, Apr 16, 03:24
F3505031: D25433.1744799333.diff
Tue, Apr 15, 10:28
F3398566: D25433.1744537547.diff
Sat, Apr 12, 09:45

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