deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-753 encode url for initial redirect
Date Sun, 26 Oct 2014 22:54:32 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master dafef3174 -> 80d52a5d2


DELTASPIKE-753 encode url for initial redirect


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/80d52a5d
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/80d52a5d
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/80d52a5d

Branch: refs/heads/master
Commit: 80d52a5d245d973a82ba1b38ecf129a35e770a78
Parents: dafef31
Author: gpetracek <gpetracek@apache.org>
Authored: Sun Oct 26 23:54:05 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Sun Oct 26 23:54:05 2014 +0100

----------------------------------------------------------------------
 .../org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/80d52a5d/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
index d0345df..04a7d1d 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
@@ -60,7 +60,9 @@ public abstract class ClientWindowHelper
         }
   
         url = JsfUtils.addRequestParameters(externalContext, url, true);
-        
+        //TODO check if it isn't better to fix addRequestParameters itself
+        url = facesContext.getExternalContext().encodeActionURL(url);
+
         // see #729
         addRequestWindowIdCookie(facesContext, newWindowId);
 


Mime
View raw message