James Moger
2014-03-08 b5361179d924eab162e17d7923f60d91cffb2d08
src/main/java/com/gitblit/servlet/AuthenticationFilter.java
@@ -16,6 +16,8 @@
package com.gitblit.servlet;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.security.Principal;
import java.util.Enumeration;
import java.util.HashMap;
@@ -100,6 +102,12 @@
         url = url.substring(1);
      }
      String fullUrl = url + (StringUtils.isEmpty(params) ? "" : ("?" + params));
      try {
         fullUrl = URLDecoder.decode(fullUrl, "UTF-8");
      } catch (UnsupportedEncodingException e) {
         logger.warn("UTF-8 decoding of URL failed: "+fullUrl, e);
         e.printStackTrace();
      }
      return fullUrl;
   }
@@ -180,4 +188,4 @@
         return user;
      }
   }
}
}