Skip to content

escape connection type and field name in registry connection builder - #71700

Open
Samin061 wants to merge 1 commit into
apache:mainfrom
Samin061:registry-conn-builder-escape
Open

escape connection type and field name in registry connection builder#71700
Samin061 wants to merge 1 commit into
apache:mainfrom
Samin061:registry-conn-builder-escape

Conversation

@Samin061

Copy link
Copy Markdown
Contributor

renderField and renderConnectionForm build the connection form HTML by concatenating the connection type and each widget field name into the id, for and data-field attributes without escaping, while the surrounding label, placeholder and description already pass through escapeHTML/escapeAttr. A connection form widget whose field name or connection type carries a double quote and angle brackets breaks out of the attribute and injects markup into the registry page when its chip is opened. Both values now go through escapeAttr, matching the escaping applied to the neighbouring fields and to the search results in #71618.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant