Page MenuHomePhabricator

Trim and URI encode symbol names before building URIs from them
ClosedPublic

Authored by epriestley on Oct 29 2019, 4:41 PM.
Tags
None
Referenced Files
F18985263: D20876.id49769.diff
Mon, Nov 17, 12:57 PM
F18880960: D20876.id49770.diff
Thu, Nov 6, 8:52 PM
F18822717: D20876.id.diff
Oct 23 2025, 8:07 AM
F18821816: D20876.diff
Oct 23 2025, 1:54 AM
F18791653: D20876.id.diff
Oct 16 2025, 4:29 PM
F18734089: D20876.id.diff
Sep 30 2025, 10:48 PM
F18726794: D20876.diff
Sep 30 2025, 7:14 AM
F18571023: D20876.id49770.diff
Sep 10 2025, 4:17 AM
Subscribers
None

Details

Summary

Fixes T13437. This URI construction was just missing URI encoding.

Also, trim the symbol because my test case ended up catching "#define\n" as symbol text.

Test Plan
  • Configured a repository to have PHP symbols.
  • Touched a ".php" file with "#define" in it.
  • Diffed the change.
  • Command-clicked "#define" in the UI, in Safari/MacOS, to jump to the definition.
    • Before: taken to a nonsense page where "#define" became an anchor.
    • After: taken to symbol search for "#define".

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Oct 29 2019, 4:48 PM
This revision was automatically updated to reflect the committed changes.