From 5ec493e48f91ada90c8f9d1da4980acea4a94b8c Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 25 Aug 2010 14:20:53 -0500 Subject: [PATCH] GRAILS-6618 - don't pass original request parameters when a forward is done. --- .../codehaus/groovy/grails/web/metaclass/ForwardMethod.groovy | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/java/org/codehaus/groovy/grails/web/metaclass/ForwardMethod.groovy b/src/java/org/codehaus/groovy/grails/web/metaclass/ForwardMethod.groovy index eb8a1dece46..04904e1da6a 100644 --- a/src/java/org/codehaus/groovy/grails/web/metaclass/ForwardMethod.groovy +++ b/src/java/org/codehaus/groovy/grails/web/metaclass/ForwardMethod.groovy @@ -54,6 +54,8 @@ class ForwardMethod { def urlInfo = new ForwardUrlMappingInfo() GrailsWebRequest webRequest = GrailsWebRequest.lookup(request) + webRequest.parameterMap?.clear() + if (params.controller) { webRequest?.controllerName = params.controller }