github-advanced-security[bot] commented on code in PR #2958:
URL: 
https://github.com/apache/incubator-kie-tools/pull/2958#discussion_r1980351431


##########
packages/form-code-generator-patternfly-theme/src/uniforms/utils/Utils.tsx:
##########
@@ -20,11 +20,21 @@
 import * as React from "react";
 import { DataType, FormElement, FormInput, InputReference, InputsContainer } 
from "../../api";
 import { DEFAULT_DATA_TYPE_OBJECT } from "./dataTypes";
+import { ListItemProps } from "../rendering/ListItemField";
 
 export const NS_SEPARATOR = "__";
 export const FIELD_SET_PREFFIX = `set`;
 
-export const getInputReference = (binding: string, dataType: DataType): 
InputReference => {
+export const getInputReference = (binding: string, dataType: DataType, 
itemProps?: ListItemProps): InputReference => {
+  if (itemProps) {
+    const [_, property] = binding.split("$");
+    return {
+      binding: binding.replace("$", `[${itemProps.indexVariableName}]`),

Review Comment:
   ## Incomplete string escaping or encoding
   
   This replaces only the first occurrence of "$".
   
   [Show more 
details](https://github.com/apache/incubator-kie-tools/security/code-scanning/1019)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to