James Moger
2014-06-11 ebed4a60d95c40b91f8ca1b99d6ea3a0a7c9114c
src/main/java/com/gitblit/utils/StringUtils.java
@@ -307,7 +307,7 @@
    * @param bytes
    * @return byte array as hex string
    */
   private static String toHex(byte[] bytes) {
   public static String toHex(byte[] bytes) {
      StringBuilder sb = new StringBuilder(bytes.length * 2);
      for (int i = 0; i < bytes.length; i++) {
         if ((bytes[i] & 0xff) < 0x10) {
@@ -642,7 +642,7 @@
            // ignore unsupported charsets
         }
      }
      if (value.startsWith("\uFEFF")) {
      if (value != null && value.startsWith("\uFEFF")) {
         // strip UTF-8 BOM
            return value.substring(1);
        }