浏览代码

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 年之前
父节点
当前提交
65fceb0dd8
共有 1 个文件被更改,包括 3 次插入1 次删除
  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();
         StringBuffer key = props->getPropKey();
         if (!key.length() || key.charAt(key.length()-1)=='!')
         if (!key.length() || key.charAt(key.length()-1)=='!')
             continue;
             continue;
-        const char *value = parameters->queryProp(key);
         if (skipLeadingDotParameters && key.charAt(0)=='.')
         if (skipLeadingDotParameters && key.charAt(0)=='.')
             continue;
             continue;
+        const char *value = parameters->queryProp(key);
+        if (!value || !*value)
+            continue;
         ensureHttpParameter(pt, key, value);
         ensureHttpParameter(pt, key, value);
     }
     }
     if (nestedRoot)
     if (nestedRoot)