You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code fails when the input value contains a single quote as the value is not escaped prior to being wrapped with single quotes, in form-panel-custom.vue:
for (let i = 0; i < vars.length; i++) {
if(condition.includes(vars[i].field)) {
condition = condition.replace(vars[i].field, `'${vars[i].value}'`)
}
}
Proposed fix:
for (let i = 0; i < vars.length; i++) {
if(condition.includes(vars[i].field)) {
condition = condition.replace(vars[i].field, `'${(vars[i].value).replaceAll("'", "\\'")}'`)
}
}
The text was updated successfully, but these errors were encountered:
This code fails when the input value contains a single quote as the value is not escaped prior to being wrapped with single quotes, in
form-panel-custom.vue
:Proposed fix:
The text was updated successfully, but these errors were encountered: