diff options
author | Sean McGivern <sean@gitlab.com> | 2019-04-29 15:26:23 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-04-29 15:26:23 +0100 |
commit | 565150205cdcb52ee4656d55c8ac3c53fc66d4f3 (patch) | |
tree | 0cb635db3fa1e2c2c60e033ee21247da8d6b0c4c /GITLAB_PAGES_VERSION | |
parent | 41fed29a60b10ded9130c0f61119965ffcd28b88 (diff) | |
download | gitlab-ce-565150205cdcb52ee4656d55c8ac3c53fc66d4f3.tar.gz |
Don't allow a relative_url_root of '/'
This will fail in a few ways:
1. We might end up having a path (not a URL) starting with `//`, which
will be interpreted by browsers as a protocol-relative URL.
2. Issue, MR, snippet, etc. reference parsing will look for URLs at
`http://gitlab.example.com//project/...`, with the double slash
preventing single slashes from working.
In general, it doesn't seem like there's a valid case for this.
Diffstat (limited to 'GITLAB_PAGES_VERSION')
0 files changed, 0 insertions, 0 deletions