Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Form backend validation

Started by Alexander Kim 9 years ago · 3 replies · 1019 views
9 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.

9 years ago

Where or how did you notice this?

9 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.

9 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 themetman, 23 hours ago
2 40 16 hours ago
General · by Hanns Mattes, 1 week ago
0 121 1 week ago
General · by Karmalakas, 1 week ago
2 185 1 week ago
General · by Hanns Mattes, 3 weeks ago
0 235 3 weeks ago
General · by Dima, 4 weeks ago
1 211 4 weeks ago