mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-10-30 21:55:43 +00:00
Compare commits
1 Commits
v3.0.0-alp
...
v3.0.0-alp
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6f35923735 |
@@ -31,7 +31,11 @@ export const ContinuePage = () => {
|
||||
}, 500);
|
||||
};
|
||||
|
||||
if (!URL.canParse(redirectUri)) {
|
||||
let uri;
|
||||
|
||||
try {
|
||||
uri = new URL(redirectUri);
|
||||
} catch {
|
||||
return (
|
||||
<ContinuePageLayout>
|
||||
<Text size="xl" fw={700}>
|
||||
@@ -45,8 +49,6 @@ export const ContinuePage = () => {
|
||||
);
|
||||
}
|
||||
|
||||
const uri = new URL(redirectUri);
|
||||
|
||||
if (
|
||||
window.location.protocol === "https:" &&
|
||||
uri.protocol === "http:"
|
||||
|
||||
Reference in New Issue
Block a user