Skip to content

Unescaped/overescaped content after field creation #8

@Bloke

Description

@Bloke

STR 1:

  1. Create a new custom field.
  2. Use an apostrophe somewhere in the 'Instructions' field. e.g. Number of 'rooms'
  3. Save the field.
  4. Hover over the Text icon to view the instructions.
    ER: Number of 'rooms'
    AR: Number of \'rooms\'

On subsequent visits to the custom field list panel, hovering over the Text icon reveals:
AR: Number of 'rooms'

After editing the field and clicking Save, then hovering over the Text icon:
AR: Number of 'rooms'

On the Write panel, the instructions field renders:
AR: Number of 'rooms'

STR 2:

  1. Create a new custom field.
  2. Use a double quote somewhere in the 'Instructions' field. e.g. Number of "rooms"
  3. Save the field.
  4. Hover over the Text icon to view the instructions.
    ER: Number of "rooms"
    AR: Number of \

On subsequent visits to the custom field list panel, hovering over the Text icon reveals:
AR: Number of

Recommendation: review consistent use of doSlash() and txpspecialchars()

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