mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-07 21:30:36 -05:00
[PR #2535] [MERGED] fix: correct session DELETE tautology and HTTP cookie domain interpolation #3017
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/2535
Author: @Abhinav-kodes
Created: 2/25/2026
Status: ✅ Merged
Merged: 2/25/2026
Merged by: @oschwartz10612
Base:
dev← Head:fix-resource-session-delete-cookie📝 Commits (1)
c64dd14fix: correct session DELETE tautology and HTTP cookie domain interpolation📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
server/auth/sessions/resource.ts(+2 -2)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Two bugs in
server/auth/sessions/resource.tswith minimal, surgical fixes.Changes are limited to two single-line corrections — no architecture changes, no new abstractions.
Closes #2534
Fix 1 — Session DELETE tautology
validateResourceSessionTokenwas deleting all rows inresourceSessionson any expiry because the WHERE clause compared the column to itself:Fix 2 — HTTP cookie Domain broken template literal
serializeResourceSessionCookiehad a missing{in the HTTP path:Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.