-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DO NOT MERGE] POC: Community Q&A #1096
base: main
Are you sure you want to change the base?
[DO NOT MERGE] POC: Community Q&A #1096
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
const videoURL = page.frontMatter.video; | ||
let embedURL; | ||
|
||
if (videoURL.includes("youtube.com") || videoURL.includes("youtu.be")) { |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High
youtube.com
if (videoURL.includes("youtube.com") || videoURL.includes("youtu.be")) { | ||
const videoId = videoURL.split('v=')[1] ? videoURL.split('v=')[1].split('&')[0] : videoURL.split('/').pop(); | ||
embedURL = `https://www.youtube.com/embed/${videoId}`; | ||
} else if (videoURL.includes("loom.com")) { |
Check failure
Code scanning / CodeQL
Incomplete URL substring sanitization High
No description provided.