I'm sure it is just a coincidence, but having written a bit about spam on one site, I got a deluge of the stuff on another.
@jws Agreed. The thing is that I don’t do this sort of thing often enough to make it worth the learning. FWIW I did most this in Atom and being able to follow calls around helped a lot.
@larand True justice would require him to be the broom.
// @matigo @hazardwarning
@matigo Now to do a little bitty write-up, at least as an outboard memory.
// @jws
@jws Indeed. I finally learned how to dump PHP from Grav (which uses Twig) onto the page. And that revealed that a crucial test
$post = isset($<u>POST['data']) ? $</u>POST['data'] : [];
completely fails every time because $_POST does not contain a 'data' value.
Now to find out why the original programmers thought it did.
// @matigo
@jws That, at a lower level, is what I have been doing. Annotating, putting questions in the code, trying to work out what is called from where. And I think I have a breakthrough. But had to stop for lunch before testing.
@matigo Absolutely. Just three things wrong with that.
- I am not a dev
- It is Tuesday morning here
- I didn't write the code
But I am making progress, slowly