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

fix image property #414

Closed
wants to merge 2 commits into from
Closed

fix image property #414

wants to merge 2 commits into from

Conversation

david-fernando
Copy link
Owner

No description provided.

Copy link

vercel bot commented Jan 15, 2024

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

Name Status Preview Comments Updated (UTC)
mediumpostsapi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 15, 2024 3:27pm

const imageUrl = (mediumUrl === mediumUrlBlocked)? placeholderUrl : urlImage

const regex = /<img[^>]*src="([^"]*)"[^>]*>/;
const match = text.match(regex);

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
a user-provided value
may run slow on strings starting with '<img ' and with many repetitions of ' '.
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.

1 participant