deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-754 restrict empty dswid
Date Sun, 26 Oct 2014 22:34:17 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 74ad4b323 -> dafef3174


DELTASPIKE-754 restrict empty dswid


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

Branch: refs/heads/master
Commit: dafef3174a1c0eda03ffd15316a5e14fafd9a8e1
Parents: 74ad4b3
Author: gpetracek <gpetracek@apache.org>
Authored: Sun Oct 26 23:33:31 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Sun Oct 26 23:33:31 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/dafef317/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 1f13f9c..d0345df 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
@@ -112,6 +112,11 @@ public abstract class ClientWindowHelper
                             entry.getValue());
                 }
 
+                if (targetUrl.contains("dswid=&"))
+                {
+                    //remove empty dswid parameter
+                    targetUrl = targetUrl.replace("dswid=&", "");
+                }
                 return targetUrl;
             }
         }


Mime
View raw message