Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Form backend validation

Started by Alexander Kim 8 years ago · 3 replies · 870 views
8 years ago

As i've noticed this form plugin only does clientside HTML5 validation, is there a way to make validation on the backend? Clientside is not secure, because users can modify it.

8 years ago

Where or how did you notice this?

8 years ago

Because inputs allow even <script> to be submitted without validation, if i make validate.required or validate.pattern it adds clientside only validation.

8 years ago

Does the script run or does it get escaped? Have you been able to use this to run some javascript from form input?

You'll have a much better chance to get help if you describe a lot more about what you've found with examples. No-one wants to tease this out of you slowly, especially volunteers trying to help. I am sure this will be taken very seriously with reproducable evidence.

Suggested topics

Topic Participants Replies Views Activity
General · by lynbor, 3 weeks ago
3 352 3 days ago
General · by lynbor, 1 week ago
7 387 3 days ago
General · by Harry, 3 days ago
0 83 3 days ago
General · by Old Man Umby, 3 weeks ago
2 256 2 weeks ago
General · by jeremycherfas, 3 weeks ago
5 374 2 weeks ago