Page MenuHomePhorge

Fix PHP 8.1 strlen(null) in DiffusionView linkBrowse()
ClosedPublic

Authored by Sten on Jul 7 2023, 14:36.
Tags
None
Referenced Files
F2943538: D25340.1738199952.diff
Wed, Jan 29, 01:19
F2943520: D25340.1738198243.diff
Wed, Jan 29, 00:50
F2938575: D25340.1738015253.diff
Sun, Jan 26, 22:00
F2936783: D25340.1737939053.diff
Sun, Jan 26, 00:50
F2930968: D25340.1737688823.diff
Thu, Jan 23, 03:20
F2930959: D25340.1737688422.diff
Thu, Jan 23, 03:13
F2930958: D25340.1737688411.diff
Thu, Jan 23, 03:13
F2930933: D25340.1737687774.diff
Thu, Jan 23, 03:02

Details

Summary

Fix PHP 8.1 strlen(null) in DiffusionView linkBrowse().

Fixes T15542

Test Plan
  1. Go into a diff (eg https://my.phorge.site/D1234)
  2. Click on the Revision Contents - History tab
  3. Click on a base link (the short git revision ID)

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Sten requested review of this revision.Jul 7 2023, 14:36
src/applications/diffusion/view/DiffusionView.php
71

Can't default $display_name to '' due to the explicit null check on line 106.

This revision is now accepted and ready to land.Jul 11 2023, 08:19