Skip to content

Commit

Permalink
LPS-70904 Treat blank parameter as null
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhou authored and brianchandotcom committed Feb 25, 2017
1 parent d5ad982 commit 61c2428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion portal-impl/src/com/liferay/portlet/PortletURLImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public void setParameter(String name, String value, boolean append) {
throw new IllegalArgumentException();
}

if (value == null) {
if ((value == null) || value.isEmpty()) {
removeParameter(name);

return;
Expand Down

0 comments on commit 61c2428

Please sign in to comment.