Skip to content

Service: "?Action=" is the same as "?Action" - #2146

Merged
the-djmaze merged 1 commit into
the-djmaze:masterfrom
filippogiuliani:fix/query-action-trailing-equals
Nov 25, 2026
Merged

the-djmaze merged 1 commit into
the-djmaze:masterfrom
filippogiuliani:fix/query-action-trailing-equals

Conversation

@filippogiuliani

Copy link
Copy Markdown

A plugin part hook used as an OAuth/OpenID Connect redirect URI (https://mail.example.com/?MyCallback) gets
the provider's answer as ?MyCallback&code=…&state=…. Some providers (Pocket ID, for one) rebuild the query
and send ?MyCallback=&code=… instead. The first path is then MyCallback= and the hook is not found. A trailing
= on the first part of the query is now ignored.

Written with the help of Claude (AI), tested on a SnappyMail-based webmail.

A plugin part hook used as an OAuth/OIDC redirect URI ("https://mail.example.com/?MyCallback") gets
the provider's answer as "?MyCallback&code=…&state=…", but some providers (Pocket ID, for one)
rebuild the query and send "?MyCallback=&code=…". The first path then was "MyCallback=" and the
hook was not found. A trailing "=" on the first part is now ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@the-djmaze

Copy link
Copy Markdown
Owner

I've moved your change to the plugins itself as only those need to mess with the path.
Check them out for your OpenID Connect plugin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request workaround

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants