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
F14095466: D20876.id49769.diff
Mon, Nov 25, 9:30 PM
Unknown Object (File)
Sat, Nov 23, 12:31 AM
Unknown Object (File)
Fri, Nov 22, 6:23 PM
Unknown Object (File)
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
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
Branch
symbol1
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23598
Build 32435: Run Core Tests
Build 32434: arc lint + arc unit

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.