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
F14081083: D20876.diff
Fri, Nov 22, 6:23 PM
F14080420: D20876.diff
Fri, Nov 22, 1:30 PM
Unknown Object (File)
Wed, Nov 20, 1:36 AM
Unknown Object (File)
Sun, Nov 17, 6:16 PM
Unknown Object (File)
Thu, Nov 14, 7:21 AM
Unknown Object (File)
Sun, Nov 10, 4:10 AM
Unknown Object (File)
Wed, Nov 6, 2:44 AM
Unknown Object (File)
Oct 15 2024, 8:26 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.