summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/gitblit/servlet/AuthenticationFilter.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/servlet/AuthenticationFilter.java b/src/main/java/com/gitblit/servlet/AuthenticationFilter.java
index 97ca438f..742f329a 100644
--- a/src/main/java/com/gitblit/servlet/AuthenticationFilter.java
+++ b/src/main/java/com/gitblit/servlet/AuthenticationFilter.java
@@ -100,6 +100,12 @@ public abstract class AuthenticationFilter extends DaggerFilter {
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 +186,4 @@ public abstract class AuthenticationFilter extends DaggerFilter {
return user;
}
}
-} \ No newline at end of file
+}