aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavid.mcweeney <david.mcweeney@est.tech>2021-08-10 14:50:30 +0100
committerdavid.mcweeney <david.mcweeney@est.tech>2021-08-10 14:50:46 +0100
commita2fa78a7e5e9aa69454f3280f46081ac6965129c (patch)
treedf039dbd9ef01aca79fa45bb34d71e5b95eabd17
parent73ca35d85189b7b74417ad4166f00fccdaf12436 (diff)
DMAAP-DR - SOnar SQL injection fix
Signed-off-by: david.mcweeney <david.mcweeney@est.tech> Change-Id: I1ea6d6c308a6ae68e441ad426179e65e4bd02abc Issue-ID: DMAAP-1623
-rwxr-xr-xdatarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/StatisticsServlet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/StatisticsServlet.java b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/StatisticsServlet.java
index 307d2d8a..7163a638 100755
--- a/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/StatisticsServlet.java
+++ b/datarouter-prov/src/main/java/org/onap/dmaap/datarouter/provisioning/StatisticsServlet.java
@@ -160,7 +160,7 @@ public class StatisticsServlet extends BaseServlet {
outputType = CSV_OUTPUT_TYPE;
}
if (req.getParameter(OUTPUT_TYPE) != null && req.getParameter(OUTPUT_TYPE).equals(JSON_OUTPUT_TYPE)) {
- map.put(OUTPUT_TYPE, req.getParameter(JSON_OUTPUT_TYPE));
+ map.put(OUTPUT_TYPE, JSON_OUTPUT_TYPE);
}
if (req.getParameter(START_TIME) != null) {
map.put(START_TIME, req.getParameter(START_TIME));