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
Unknown Object (File)
Fri, Dec 13, 9:06 AM
Unknown Object (File)
Thu, Dec 12, 1:05 PM
Unknown Object (File)
Mon, Dec 9, 12:30 AM
Unknown Object (File)
Sun, Dec 8, 10:45 AM
Unknown Object (File)
Tue, Dec 3, 8:53 PM
Unknown Object (File)
Sat, Nov 30, 6:07 AM
Unknown Object (File)
Tue, Nov 26, 7:26 AM
Unknown Object (File)
Tue, Nov 26, 7:06 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.