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