Ver código fonte

Merge pull request #7667 from afishbeck/wseclSubmitEmptyNumerics

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

Reviewed By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 anos atrás
pai
commit
a9320b0584
1 arquivos alterados com 3 adições e 1 exclusões
  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)