Merged #211 "Fix raw servlet trashing paths with spaces"
| | |
| | | security: ~ |
| | | fixes: |
| | | - Fix French translation (pr-224, ticket-210) |
| | | - Fix raw servlet trashing paths with spaces (ticket-211) |
| | | changes: ~ |
| | | additions: ~ |
| | | dependencyChanges: ~ |
| | | contributors: |
| | | - Pierre Templier |
| | | - Barry Roberts |
| | | } |
| | | |
| | | # |
| | |
| | | branch = Repository.shortenRefName(branch).replace('/', fsc); |
| | | } |
| | | |
| | | String encodedPath = path == null ? "" : path.replace(' ', '-'); |
| | | encodedPath = encodedPath.replace('/', fsc); |
| | | return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + (path == null ? "" : encodedPath))); |
| | | String encodedPath = path == null ? "" : path.replace('/', fsc); |
| | | return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + encodedPath)); |
| | | } |
| | | |
| | | protected String getBranch(String repository, HttpServletRequest request) { |