Selaa lähdekoodia

Fixed string encoding regression introduced with fix for BOM

tags/v1.1.0
James Moger 11 vuotta sitten
vanhempi
commit
12c7592c32
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0
    1
      src/com/gitblit/utils/StringUtils.java

+ 0
- 1
src/com/gitblit/utils/StringUtils.java Näytä tiedosto

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

Loading…
Peruuta
Tallenna