James Moger
2014-07-05 9a1c75e589c1131790a41a1f5de1700721e38789
Merge branch 'ticket/139' into develop

Conflicts:
src/main/java/com/gitblit/servlet/RawServlet.java
1 files modified
7 ■■■■ changed files
src/main/java/com/gitblit/servlet/RawServlet.java 7 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/servlet/RawServlet.java
@@ -110,10 +110,6 @@
        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)));
    }
@@ -138,7 +134,8 @@
        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() {