- Notifications
You must be signed in to change notification settings - Fork23
fix: correct URL validation and centralize logic#421
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
5a69fcb
tof8556e8
Comparef8556e8
to38bc617
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM!
d5496af
intomainUh oh!
There was an error while loading.Please reload this page.
Description
Fixes incorrect URL validation logic previously used in URL definitions, where the attribute label (
s
) was being parsed instead of the actual value. This bug caused invalid URLs to be silently accepted.Additionally, this PR introduces a shared
ValidateURL
helper function to remove duplication and ensure consistent behavior across all URL fields.Changes
url.Parse(s)
, now validating the actual value.ValidateURL
helper function for consistent and reusable validation.ValidateURL
.