Skip to content
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

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

ishamehramixpanel
Copy link
Collaborator

No description provided.

@ishamehramixpanel ishamehramixpanel requested a review from a team as a code owner May 21, 2024 20:43
@ishamehramixpanel ishamehramixpanel requested review from mherrman and removed request for a team May 21, 2024 20:43
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 10:31pm

@ishamehramixpanel ishamehramixpanel changed the title Update _meta.json POC: Community Q&A May 21, 2024
@myronkaifung myronkaifung changed the title POC: Community Q&A [DO NOT MERGE] POC: Community Q&A May 21, 2024
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
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
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

'
loom.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants