Branch names with single quotes breaks Network view
Created by: cinderblock
Branch names are not getting escaped when passed to a javascript object in the Project Network view.
Steps to reproduce:
- Create a branch with a single quote in the branch name:
Test's-Test
- Push to gitlab
- Look at Project's Network view
Expected Result: Page loads, no errors
Actual Result:
Network graph never loads, inspector console shows Uncaught SyntaxError: Unexpected identifier
See (https://gitlab.com/cinderblock/Test/network/Test's-Test)