Skip to content

fix(auth): restore Mustache.escape after rendering OAuth templates#275

Open
beejak wants to merge 1 commit intomakenotion:mainfrom
beejak:fix/restore-mustache-escape-after-auth-template
Open

fix(auth): restore Mustache.escape after rendering OAuth templates#275
beejak wants to merge 1 commit intomakenotion:mainfrom
beejak:fix/restore-mustache-escape-after-auth-template

Conversation

@beejak
Copy link
Copy Markdown

@beejak beejak commented Apr 22, 2026

Summary


enderAuthTemplate\ assigned \Mustache.escape\ to the identity function for URL rendering. If an error occurred after that assignment, or if another request ran concurrently, the global escape function could stay overridden.

Change

Save the previous \Mustache.escape, run URL/body rendering inside \ ry, and restore it in \ inally.

Test plan


  • pm install --ignore-scripts && npm run build\

Made with Cursor

renderAuthTemplate temporarily set Mustache.escape to the identity function. Restore the previous escape implementation in a finally block so concurrent template rendering and later Mustache uses keep the default HTML-escaping behavior.

Made-with: Cursor
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