Skip to content

Commit

Permalink
#947 Add a warning in case controller puts values with view() or assi…
Browse files Browse the repository at this point in the history
…gn but then redirects request
  • Loading branch information
ipolevoy committed Oct 14, 2019
1 parent 1bf7323 commit dcbf453
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,9 @@ private void logDone(Throwable throwable) {

if (redirectTarget != null) {
log.put("redirect_target", redirectTarget);
if(RequestContext.getValues().size() > 0){
log.put("WARNING", "You passed values to a view and redirected! Are you sure you know what you are doing?");
}
}

if (throwable != null) {
Expand Down

0 comments on commit dcbf453

Please sign in to comment.