Skip to content

fix add url validation - #3763

Merged
aaravgarg merged 3 commits into
mainfrom
fix/url
Jan 3, 2026
Merged

aaravgarg merged 3 commits into
mainfrom
fix/url

Conversation

@krushnarout

Copy link
Copy Markdown
Member

closes #3762

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a _safeParseUrl utility function to validate URLs before they are launched, which is an excellent improvement for security and stability. It correctly replaces several unsafe usages of Uri.parse.

I've added one comment suggesting that this new function be extracted to a shared utility file. This will allow it to be reused in other parts of the app that have the same URL validation vulnerability, ensuring a more complete fix.

Overall, this is a valuable contribution that hardens the application against crashes and potential security issues.

@aaravgarg
aaravgarg requested a review from mdmohsin7 December 15, 2025 16:18
@aaravgarg
aaravgarg merged commit 52b6858 into main Jan 3, 2026
@aaravgarg
aaravgarg deleted the fix/url branch January 3, 2026 03:55
Glucksberg pushed a commit to Glucksberg/omi-local that referenced this pull request Apr 28, 2026
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.

FlutterError - FormatException: Scheme not starting with alphabetic character

4 participants