Browse Source

HPCC-14051 WsEcl empty form fields should be treated as null

Another regression introduced when switching to common
createPTreeFromHttpParameters() method.

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Anthony Fishbeck 10 years ago
parent
commit
65fceb0dd8
1 changed files with 3 additions and 1 deletions
  1. 3 1
      system/jlib/jptree.cpp

+ 3 - 1
system/jlib/jptree.cpp

@@ -7229,9 +7229,11 @@ IPropertyTree *createPTreeFromHttpParameters(const char *name, IProperties *para
         StringBuffer key = props->getPropKey();
         if (!key.length() || key.charAt(key.length()-1)=='!')
             continue;
-        const char *value = parameters->queryProp(key);
         if (skipLeadingDotParameters && key.charAt(0)=='.')
             continue;
+        const char *value = parameters->queryProp(key);
+        if (!value || !*value)
+            continue;
         ensureHttpParameter(pt, key, value);
     }
     if (nestedRoot)