Skip to content

B12974, Added validation on save for Form Elements.

Zen Zalapski requested to merge B12974-Sanitize-Queries-in-Action-Elements into develop

Now on Form Element save QFQ will check:

  • FE.sql1 for {{! }}
  • FE.mode sql for {{ }}
  • And all FE.parameters for:
    1. If that Parameter exists (is in Array FE_PARAMETER_RULES)
    1. If that Parameter conforms to the Rules attached to it in the FE_PARAMETER_RULES

Parameter Rules are a combination of:

  • '' -> NO '{{ }}' or '{{! }}'
  • '{{' -> NEED '{{ }}'
  • '{{!' -> NEED '{{! }}'

Only 1 Rule has to be True to pass validation.

As of this moment a total of 167 Parameters are tracked.

Merge request reports

Loading