-
Notifications
You must be signed in to change notification settings - Fork 39
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
myAchievements: achievement link validation(fixes #8114) #8115
base: master
Are you sure you want to change the base?
Conversation
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.
@RheuX I've tackled the specific edge cases you mentioned, feel free to test again or even handle more edge cases |
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.
the edge case I mentioned is now blocked which is great, i know we can't block every link that invalid, but probably another one is to check if at least have a common tld (https://tld-list.com/). so things like the one jesse mentioned shouldn't be possible. If they passed all the basic link validation, but just not a valid link (doesn't link to anywhere at the end), than thats something that we probably shouldn't handle unless you want to do a DNS Lookup So TL;DR, I think we should implemented a regex that handle (i gave example to test out for the regex - they should be invalid)
this should be good enough for a basic validation link @Mutugiii |
I pushed some additional edge case handling with a regex. All the cases I mentioned plus support for multipart TLDs like .co.uk should now be handled appropriately. |
Fixes #8114
Link validation for an achievement under the myAchievements