Skip to content

Overly strict "security issue" definition... #48

@swombat

Description

@swombat
Image

I really don't see what the "security issue" is with this code:

<div data-controller="<%= hide_button_text.present? ? " reveal" : "" %><%= has_files ? " file-upload" : "" %> <%= clear_on_submit ? " clear-fields" : "" %>" <%= compact_form ? "data-turbo-permanent" : "" %>>

There is no security issue in this, and I don't see an equivalently clear way to achieve this without using ERB output tags in params.

How can I disable this warning? (or better yet maybe it should not be a warning in the first place?)

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions