Matthias Cullmann
2014-01-28 c5c6416c8795c155ae617075bd8e33f179000f96
allow specials chars in repo names

see http://code.google.com/p/gitblit/issues/detail?id=362
1 files modified
8 ■■■■ changed files
src/main/java/com/gitblit/servlet/AuthenticationFilter.java 8 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/servlet/AuthenticationFilter.java
@@ -100,6 +100,12 @@
            url = url.substring(1);
        }
        String fullUrl = url + (StringUtils.isEmpty(params) ? "" : ("?" + params));
        try {
            fullUrl = URLDecoder.decode(fullUrl, "UTF-8");
        } catch (UnsupportedEncodingException e) {
            logger.warn("UTF-8 decoding of URL failed: "+fullUrl, e);
            e.printStackTrace();
        }
        return fullUrl;
    }
@@ -180,4 +186,4 @@
            return user;
        }
    }
}
}