| | |
| | | |
| | | String encodedPath = path == null ? "" : path.replace(' ', '-'); |
| | | encodedPath = encodedPath.replace('/', fsc); |
| | | try { |
| | | encodedPath = URLEncoder.encode(encodedPath, "UTF-8"); |
| | | } catch (UnsupportedEncodingException e) { |
| | | } |
| | | return baseURL + Constants.RAW_PATH + repository + "/" + (branch == null ? "" : (branch + "/" + (path == null ? "" : encodedPath))); |
| | | } |
| | | |
| | |
| | | if (path.endsWith("/")) { |
| | | path = path.substring(0, path.length() - 1); |
| | | } |
| | | return path; |
| | | char c = runtimeManager.getSettings().getChar(Keys.web.forwardSlashCharacter, '/'); |
| | | return path.replace('!', '/').replace(c, '/'); |
| | | } |
| | | |
| | | protected boolean renderIndex() { |