+ $value = $GLOBALS['raw_request']['post'][$element];
+
+ // Is $subElement set?
+ if ((!is_null($subElement)) && (isPostRequestElementSet($element, $subElement))) {
+ // Then use this
+ $value = sqlEscapeString($value[$subElement]);
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',subElement=' . $subElement . ' - SUB!');
+ } elseif ((!is_array($value)) && (function_exists('sqlEscapeString'))) {
+ // Escape it here
+ $value = sqlEscapeString($value);
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ' - REGULAR!');
+ }
+
+ // Set it in cache
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',subElement=' . $subElement . ',value=' . $value.' - ADDED!');
+ $GLOBALS['cache_request']['post'][$element][$subElement] = $value;