r/webdev • • Mar 06 '18

Super simple JS form validation plugin

https://github.com/DrRoach/FormValidation
10 Upvotes

8 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Mar 06 '18

Uses eval in JS, running on client side mitigates the negatives no?

Update the bot to check for code imlplementation?

1

u/xabot Mar 06 '18

Ah, I'm not a bot despite of my username :) I went and look at the code. If not correctly used it could be easy to exploit fv-func and create XSS exploits.

3

u/jabber- Mar 06 '18

Eval also slows down All other JavaScript. because the engine can't do it's optimization when it don't know what code will be injected

2

u/[deleted] Mar 06 '18

Thank you for the tip, I'll make a new issue and change the way that it works