Use safer method of URL parsing
This commit is contained in:
@@ -323,7 +323,7 @@ export function createBskyAppAbsoluteUrl(path: string): string {
|
|||||||
export function createProxiedUrl(url: string): string {
|
export function createProxiedUrl(url: string): string {
|
||||||
let u
|
let u
|
||||||
try {
|
try {
|
||||||
u = URL.parse(url)
|
u = new URL(url)
|
||||||
} catch {
|
} catch {
|
||||||
return url
|
return url
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user