Commit c6000044 authored by Gradl, Tobias's avatar Gradl, Tobias
Browse files

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

when redirecting (OPENED)

Task-Url: #20
parent 642fccae
Pipeline #23409 passed with stage
in 31 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