Skip to content

fix: support Leaf 4 (guard Crash\Pages::csrf, widen anchor/http) - #15

Merged
mychidarko merged 1 commit into
v5.xfrom
fix/pages-guard-leaf4
Nov 9, 2026
Merged

mychidarko merged 1 commit into
v5.xfrom
fix/pages-guard-leaf4

Conversation

@mychidarko

Copy link
Copy Markdown
Member

validate() called Pages::csrf() unguarded, which fatals on Leaf 4 (leafs/exception <5).

  • Leaf 5: same Pages::csrf() call, same output.
  • Leaf 4: plain 400 with the token error via Leaf\Http\Response::exit.
  • leafs/anchor ^1.6 || ^5.0, leafs/http ^4.0 || ^5.0; leafs/exception ^5.0 added to require-dev so CI covers the Pages branch.

Suite: core 5 25/25, core 4.4.1 24 passed + Pages test skipped. Releases as 5.0.2.

validate() called Pages::csrf() unguarded, which fatals on Leaf 4
(leafs/exception <5). Leaf 5 output is unchanged; Leaf 4 now gets a plain
400 with the token error. anchor ^1.6 || ^5.0 and http ^4.0 || ^5.0 so it
installs next to Leaf 4.4.1.
@mychidarko
mychidarko merged commit acdfcfc into v5.x Nov 9, 2026
24 of 25 checks passed
@mychidarko
mychidarko deleted the fix/pages-guard-leaf4 branch November 9, 2026 17:06
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.

1 participant