Commit 5c832439 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'sast-catch-unexpected-token' into 'master'

Fix `SyntaxError: Unexpected token` in SAST jobs

See merge request gitlab-org/gitlab-ce!29156
parents 75e11922 07b62669
......@@ -152,7 +152,7 @@ export function isSafeURL(url) {
try {
const parsedUrl = new URL(url, getBaseURL());
return ['http:', 'https:'].includes(parsedUrl.protocol);
} catch {
} catch (e) {
return false;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment