Page MenuHomePhorge

Fix an instance of `strlen(null)`
ClosedPublic

Authored by avivey on Feb 23 2024, 11:29.
Tags
None
Referenced Files
F2987205: D25539.1740110758.diff
Thu, Feb 20, 04:05
F2982272: D25539.1739948786.diff
Tue, Feb 18, 07:06
F2976151: D25539.1739586329.diff
Fri, Feb 14, 02:25
F2962731: D25539.1739181800.diff
Sun, Feb 9, 10:03
F2962730: D25539.1739181798.diff
Sun, Feb 9, 10:03
F2962729: D25539.1739181794.diff
Sun, Feb 9, 10:03
F2947570: D25539.1738479867.diff
Sat, Feb 1, 07:04
F2946938: D25539.1738435119.diff
Fri, Jan 31, 18:38

Details

Summary

Ref Q112, ref T15064.

Test Plan

Enter the text [[hello]] in a remarkup field - without this change, it causes a deprecation warning in the log.

This doesn't happen if the content looks like a valid URL - this is the "Wiki Link" syntax.

Diff Detail

Repository
rP Phorge
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avivey requested review of this revision.Feb 23 2024, 11:29
src/applications/phriction/markup/PhrictionRemarkupRule.php
75–80

I'm pretty much guessing that this is the only place explicitName can be created. $name is extracted from a regexp inline 19.

This revision is now accepted and ready to land.Feb 23 2024, 13:14
This revision was automatically updated to reflect the committed changes.