question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SolutionForm Link Validators Discussion

See original GitHub issue

This issue is to specifically discuss further implementation of: https://github.com/freeCodeCamp/freeCodeCamp/blob/main/client/src/components/formHelpers/FormValidators.js

The current validators check for:

  • Repl editor links (e.g. https://repl.it/@Sky020/some-project)
  • Glitch editor links (e.g. https://glitch.com/edit/#!/some-project)
  • Codesandbox editor links (e.g. https://codesandbox.io/s/sky020/some-project)
  • General GitHub links (e.g. https://github.com/freeCodeCamp/freeCodeCamp/)
  • Localhost links (e.g. http://localhost:3000)
  • Repl.it ‘join’ links (resolved with #41094 ) (e.g. https://repl.it/join/Sky020)
  • fCC related links (codepen.io/freecodecamp, freecodecamp.rocks, github.com/freecodecamp) (resolved with #41094 )
  • unsecure http links which cannot be used by the tests (resolved with #41329 )

And does not check for:

  • IPv4 and IPv6 addresses (e.g. 192.168.1.1:3000 or, more common, http://127.0.0.1:5500)

Any other thoughts? Should some/all of this be implemented?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
moT01commented, Mar 2, 2021

This seems pretty related https://github.com/freeCodeCamp/freeCodeCamp/pull/41162#issuecomment-784330415. Want to add it to the list @ShaunSHamilton? Or let me know if it feels like a separate issue and I’ll make another one.

I suppose the test would be to require https submissions.

1reaction
naomi-lgbtcommented, Feb 18, 2021

Wouldn’t hurt - I think I’ve only seen someone submit that once (based on forum posts), but extra sanity checks are always nice to have IMHO.

But it’s also not a blocking issue, so I wouldn’t prioritise it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SOLUTION: Form Validation
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science! Post question. Similar Documents....
Read more >
Secure JavaScript URL validation
We can use these to validate URLs in several ways: Using Regex literals and constructors; URL constructors; isValidURL method; Input elements ...
Read more >
How do I validate links in a course? - Canvas Community
As an instructor, you can verify links to course content throughout your course to ensure they are valid. You can check these links...
Read more >
Django's ModelForm unique_together validation
My problem is that the SolutionForm does not validate Solution 's unique_together constraint and thus, it returns an IntegrityError when ...
Read more >
Solved: URL Validation
Solved: Hi All, I have created a single line variable field for catalog item. Now i want to validate the url. Kindly help...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found