From c53ed47c0ea7d6f4e28016a0bd099145ef41b7dc Mon Sep 17 00:00:00 2001 From: Keith Donald Date: Wed, 28 Feb 2007 16:51:10 +0000 Subject: [PATCH] added resource url encoding --- spring-webflow/changelog.txt | 3 +++ .../webflow/executor/jsf/FlowPhaseListener.java | 1 + 2 files changed, 4 insertions(+) diff --git a/spring-webflow/changelog.txt b/spring-webflow/changelog.txt index 179b725b..0834e0bb 100644 --- a/spring-webflow/changelog.txt +++ b/spring-webflow/changelog.txt @@ -19,6 +19,9 @@ Package org.springframework.webflow.conversation * The SessionBindingConversationManager now re-binds the ConversationContainer in the session every time a contained conversation is unlocked (SWF-244). +Package org.springframework.webflow.executor +* Added resource URL encoded to redirects in a JSF environment + Changes in version 1.0.1 (08.01.2007) ------------------------------------- diff --git a/spring-webflow/src/main/java/org/springframework/webflow/executor/jsf/FlowPhaseListener.java b/spring-webflow/src/main/java/org/springframework/webflow/executor/jsf/FlowPhaseListener.java index 3fd0cb03..f20cfc0e 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/executor/jsf/FlowPhaseListener.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/executor/jsf/FlowPhaseListener.java @@ -317,6 +317,7 @@ public class FlowPhaseListener implements PhaseListener { private void sendRedirect(String url, JsfExternalContext context) { try { + url = context.getFacesContext().getExternalContext().encodeResourceURL(url); context.getFacesContext().getExternalContext().redirect(url); context.getFacesContext().responseComplete(); }