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
F13182673: D20876.id49769.diff
Fri, May 10, 12:58 AM
F13179647: D20876.diff
Wed, May 8, 9:20 PM
Unknown Object (File)
Tue, May 7, 8:23 AM
Unknown Object (File)
Sat, May 4, 6:55 PM
Unknown Object (File)
Sat, May 4, 1:41 AM
Unknown Object (File)
Wed, May 1, 12:22 AM
Unknown Object (File)
Apr 7 2024, 3:08 PM
Unknown Object (File)
Mar 29 2024, 7:07 PM
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.