Browse Source

@CookieValue returns decoded cookie value in a Servlet environment (SPR-7286)

pull/1234/head
Juergen Hoeller 15 years ago
parent
commit
b2204ec94e
  1. 2
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.java

2
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/mvc/annotation/AnnotationMethodHandlerAdapter.java

@ -748,7 +748,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator @@ -748,7 +748,7 @@ public class AnnotationMethodHandlerAdapter extends WebContentGenerator
return cookieValue;
}
else if (cookieValue != null) {
return cookieValue.getValue();
return urlPathHelper.decodeRequestString(servletRequest, cookieValue.getValue());
}
else {
return null;

Loading…
Cancel
Save