James Moger
2014-05-07 b016de996e77b3d7b6e68d8442c47a50e2a3d2eb
Fix transport determination for SSH urls on port 22
2 files modified
9 ■■■■ changed files
releases.moxie 2 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/Constants.java 7 ●●●● patch | view | raw | blame | history
releases.moxie
@@ -16,6 +16,7 @@
    - Fix forcing default locale to en or LANG_CC for web ui (ticket-51)
    - Fix inconsistency with repository ownership permission checking (ticket-52)
    - Prevent submission from New|Edit ticket page with empty titles (ticket-53)
    - Fix transport determination for SSH urls served on port 22 (issue-421, ticket-63)
    changes:
    - improve French translation (pr-176)
    - simplify current plugin release detection and ignore the currentRelease registry field 
@@ -31,6 +32,7 @@
    - Owen Nelson
    - Alexander Zabluda
    - Philipp Beckmann
    - Jakob Boysen
}
#
src/main/java/com/gitblit/Constants.java
@@ -554,7 +554,12 @@
        }
        public static Transport fromUrl(String url) {
            String scheme = url.substring(0, url.indexOf("://"));
            int delim = url.indexOf("://");
            if (delim == -1) {
                // if no protocol is specified, SSH is assumed by git clients
                return SSH;
            }
            String scheme = url.substring(0, delim);
            return fromString(scheme);
        }
    }