Skip to content

fix: escape single quotes in View::e() - #728

Merged
n0nag0n merged 1 commit into
masterfrom
fix-ghsa-r8g9-view-e
Sep 4, 2026
Merged

fix: escape single quotes in View::e()#728
n0nag0n merged 1 commit into
masterfrom
fix-ghsa-r8g9-view-e

Conversation

@ambrose5773

Copy link
Copy Markdown
Contributor

Summary

  • View::e() now calls htmlentities() with ENT_QUOTES | ENT_SUBSTITUTE and UTF-8 so single quotes are escaped on all supported PHP versions (>=7.4).
  • Addresses private advisory GHSA-r8g9-m376-w889. Patch release still needed for the published range (Handler / Austin).

Test plan

  • ViewTest::testEEscapesSingleQuote asserts ' becomes '
  • Existing ViewTest escape tests still pass

Pass ENT_QUOTES|ENT_SUBSTITUTE and UTF-8 to htmlentities so single-quoted
attributes are escaped on PHP 7.4/8.0 as well as 8.1+.
@n0nag0n
n0nag0n merged commit 241541b into master Sep 4, 2026
21 checks passed
@n0nag0n
n0nag0n deleted the fix-ghsa-r8g9-view-e branch September 4, 2026 03:38
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