Commit 89a23cfe authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

Merge branch 'v2.1-dev' into 'v2.x-master'

20: Prevent auth related model attributes to show up as GET parameters

See merge request !10
parents 11d893ba c6000044
Pipeline #23489 passed with stages
in 2 minutes and 34 seconds
......@@ -5,7 +5,7 @@ plugins {
allprojects {
group = 'eu.dariah.de'
version = '2.1.6-RELEASE'
version = '2.1.7-RELEASE'
apply plugin: 'eclipse'
......
......@@ -28,7 +28,7 @@ public class AuthInfoHandlerInterceptor extends HandlerInterceptorAdapter {
*/
@Override
public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
if (modelAndView==null) {
if (modelAndView==null || modelAndView.getViewName()==null || modelAndView.getViewName().toLowerCase().startsWith("redirect:")) {
return;
}
AuthPojo auth = authInfoHelper.getAuth();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment