Consider avoid undefined array key error
-
Hi there,
This is not a request for support, I’m opening the issue hoping that plugin authors might consider in future versions, to update codes to avoid undefined array key error.
FastCGI sent in stderr: "PHP message: PHP Warning: Undefined array key "ne" in /plugins/newsletter/subscription/subscription.php on line 667While reviewing the error logs on one of our sites, we saw quite a long list of this errors being printed into the log, it was caused by attacker trying to send a POST request like
/?action=tnp&na=sa HTTP/1.0, and this line of code in the plugin$data->email = $posted['ne'];will generate the undefined array key error.It would be great to have this improved in upcoming release of the plugins.
The topic ‘Consider avoid undefined array key error’ is closed to new replies.