Skip to content

improve escaping of tag and id in settle lookup#3752

Merged
1cg merged 1 commit intobigskysoftware:devfrom
MichaelWest22:escape-id-tag
Apr 21, 2026
Merged

improve escaping of tag and id in settle lookup#3752
1cg merged 1 commit intobigskysoftware:devfrom
MichaelWest22:escape-id-tag

Conversation

@MichaelWest22
Copy link
Copy Markdown
Collaborator

@MichaelWest22 MichaelWest22 commented Apr 16, 2026

Description

security scanning highlighted potential issues in escaping of id and tag during settle item lookup was only finding the first ' or : and escaping it which would cause it to throw an exception if a user tried. moving to CSS.escape is a simple fix.

Also tidied up class add functions that need standardizing

Corresponding issue:

Testing

added test for double ' in id which was broken before and added a test for 100% code coverage gap.

Checklist

  • I have read the contribution guidelines
  • I have targeted this PR against the correct branch (master for website changes, dev for
    source changes)
  • This is either a bugfix, a documentation update, or a new feature that has been explicitly
    approved via an issue
  • I ran the test suite locally (npm run test) and verified that it succeeded

@1cg 1cg merged commit d53932d into bigskysoftware:dev Apr 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants