Skip to content

Commit

Permalink
Merge pull request #142 from openstad/hotfix/invalid-redirect-url
Browse files Browse the repository at this point in the history
hotfix: set redirecturl to null when unparseable
  • Loading branch information
Badmuts committed Dec 7, 2023
2 parents 9f61bc4 + fb9799f commit 672508c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/auth/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ exports.logout = async (req, res) => {
const redirectUrlHost = redirectURL ? new URL(redirectURL).hostname : false;
redirectURL = redirectUrlHost && allowedDomains && allowedDomains.indexOf(redirectUrlHost) !== -1 ? redirectURL : false;
} catch (e) {
//
redirectURL = null;
}

if (!redirectURL) {
Expand Down

1 comment on commit 672508c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Published new image: openstad/auth:master-672508c

Please sign in to comment.