James Moger
2011-06-25 85c2e6eb34215e2242e388a8f8b7173a14b96ad3
src/com/gitblit/utils/StringUtils.java
@@ -58,6 +58,11 @@
      return retStr.toString();
   }
   public static String decodeFromHtml(String inStr) {
      return inStr.replace("&amp;", "&").replace("&lt;", "<").replace("&gt;", ">")
            .replace("&quot;", "\"").replace("&nbsp;", " ");
   }
   public static String encodeURL(String inStr) {
      StringBuffer retStr = new StringBuffer();
      int i = 0;
@@ -165,7 +170,7 @@
      }
      return sb.toString();
   }
   public static String getRootPath(String path) {
      if (path.indexOf('/') > -1) {
         return path.substring(0, path.lastIndexOf('/'));