Skip to content
Snippets Groups Projects
Commit 5c832439 authored by Robert Speicher's avatar Robert Speicher
Browse files

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
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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;
}
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment