Occurs when sending a lot of information (Content-Length: 99659) from an html form.
But this doesn’t happen if there is little information(Content-Length: 83) sent.
I am saying to manually code the PHP script to do exactly this:
WHEN “submit button clicked” THEN DO {
if strlen(USER FORM) or strlen(PASSWORD) exceed A HUMAN LENGHT{
echo “error”;
die();
}
}
conceptually is not that difficult, even chatgpt could probably code it for you
If you go to that page and input an extreme long sequence of characters in the $_post forms, the php crashes and returns a http error 419 page expired… could easily truncate the process using strlen on input
Error 419 relates to CSRF token, a security feature in Laravel forms that prevents replay attack on your website.
As you have mentioned that site behaviour varies by the submission size, it’s very likely that you have placed @csrf at the end of the form, making it one of the last parameters that gets submitted. When you attempt to post a lot of things at once and exceed the max_post_vars directive, subsequent values get dropped and very likely one of them is the CSRF token. Once the token’s gone, Laravel cannot validate your submission being fresh enough and you’ll get a 419.
Reduce your submission size by making it go through more screens and update items by part instead of all at once.
Please understand that the system is having some issues at the moment; we can’t do anything about them. So be tight and hang in there while the admin fixes it.