Skip to content

Conversation

@krushnarout
Copy link
Member

closes #3762

Copy link
Contributor

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

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
1 check passed
@aaravgarg aaravgarg deleted the fix/url branch January 3, 2026 03:55
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

5 participants