James Moger
2012-07-10 3fb41fdec5712b792da05e8549c2c0a31f112ca0
src/com/gitblit/models/FederationProposal.java
@@ -37,6 +37,8 @@
   public FederationToken tokenType;
   public String token;
   public String message;
   public Map<String, RepositoryModel> repositories;
@@ -59,6 +61,7 @@
      this.url = url;
      this.tokenType = tokenType;
      this.token = token;
      this.message = "";
      this.repositories = repositories;
      try {
         // determine server name and set that as the proposal name
@@ -66,7 +69,7 @@
         if (name.contains("/")) {
            name = name.substring(0, name.indexOf('/'));
         }
         name = name.replace(".", "");
         name = name.replace(".", "").replace(";", "").replace(":", "").replace("-", "");
      } catch (Exception e) {
         name = Long.toHexString(System.currentTimeMillis());
      }