successRedirectUrl fixes
parent
3ae4655449
commit
14443099e0
|
@ -118,8 +118,7 @@ export const userMetadata = z
|
||||||
* - XSS attempts through javascript:alert('hi')
|
* - XSS attempts through javascript:alert('hi')
|
||||||
* - mailto: links
|
* - mailto: links
|
||||||
*/
|
*/
|
||||||
export function assertValidUrl(url: string | null | undefined) {
|
export function assertValidUrl(url: string) {
|
||||||
if (!url) return false;
|
|
||||||
return url.startsWith("http://") && url.startsWith("https://");
|
return url.startsWith("http://") && url.startsWith("https://");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue