Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Auge2015-09-07 15:58:16 +0000
committerRaymond Auge2015-09-07 15:58:16 +0000
commit89694b4e1f0e4fa9b370dcfb77b6b35e0fb98b8f (patch)
tree87e3834e6d3e118daf9cd9d485d349281e2428a6 /bundles
parent83153894ca0b83565d0631d3106447ef54a9b4f7 (diff)
downloadrt.equinox.bundles-89694b4e1f0e4fa9b370dcfb77b6b35e0fb98b8f.tar.gz
rt.equinox.bundles-89694b4e1f0e4fa9b370dcfb77b6b35e0fb98b8f.tar.xz
rt.equinox.bundles-89694b4e1f0e4fa9b370dcfb77b6b35e0fb98b8f.zip
Bug 476808 - [http servlet] not properly handling null parameters in some casesI20150908-0800
Signed-off-by: Raymond Auge <raymond.auge@liferay.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java
index 0537b330..5d60e206 100644
--- a/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java
+++ b/bundles/org.eclipse.equinox.http.servlet/src/org/eclipse/equinox/http/servlet/internal/util/Params.java
@@ -24,6 +24,9 @@ public class Params {
}
public static String[] append(String[] params, String... values) {
+ if (values == null) {
+ values = new String[] {null};
+ }
String[] tmp = values;
int length = 0;
if (params != null) {

Back to the top