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
F15492942: D20876.id49769.diff
Sat, Apr 12, 7:55 PM
F15488186: D20876.id49770.diff
Thu, Apr 10, 8:14 PM
F15472337: D20876.id49769.diff
Sat, Apr 5, 12:43 PM
F15466789: D20876.id49770.diff
Thu, Apr 3, 9:51 AM
F15466642: D20876.id.diff
Thu, Apr 3, 7:51 AM
F15463410: D20876.diff
Tue, Apr 1, 11:10 PM
F15462707: D20876.diff
Tue, Apr 1, 5:02 PM
F15460778: D20876.id.diff
Tue, Apr 1, 2:08 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.