FELIX-2241 support multipart/form-data POST parameters
FELIX-2242 fix incorrect JS fragment if dump folder does not exist

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@929407 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsagePanel.java b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsagePanel.java
index 3e54f43..88e7258 100644
--- a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsagePanel.java
+++ b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsagePanel.java
@@ -104,7 +104,7 @@
         }
         else
         {
-            statusBuf.append("'files:0,total:0'");
+            statusBuf.append("'files':0,'total':0");
         }
 
         filesBuf.append(']');
@@ -185,7 +185,7 @@
         }
         else
         {
-            String command = req.getParameter("command");
+            String command = WebConsoleUtil.getParameter(req, "command");
             if ("dump".equals(command))
             {
                 resp.setContentType("text/plain; charset=UTF-8");