]> source.dussan.org Git - gitblit.git/commitdiff
Fixed string encoding regression introduced with fix for BOM
authorJames Moger <james.moger@gitblit.com>
Sat, 18 Aug 2012 19:22:11 +0000 (15:22 -0400)
committerJames Moger <james.moger@gitblit.com>
Sat, 18 Aug 2012 19:22:11 +0000 (15:22 -0400)
src/com/gitblit/utils/StringUtils.java

index 3972f202aeb639cb1a0527792a5b0754287979b8..c13be8adbd50209966d1b5c23f68ef9f93e5dd79 100644 (file)
@@ -594,7 +594,6 @@ public class StringUtils {
                                // ignore unsupported charsets\r
                        }\r
                }\r
-               value = new String(content, Charset.forName("UTF-8"));\r
                if (value.startsWith("\uFEFF")) {\r
                        // strip UTF-8 BOM\r
             return value.substring(1);\r