Newsletter

GDPR compliant subscriber and message management

Back to Newsletter Support

freestream
freestream

Please add some validation in your backend code. The function onSubscription in newsletter/components/Form.php on line 29 thorws an exception to the frontend with a message that is totally cryptic for a non-developer the the posted email is empy or not valid.

One simple solution to start with could be on line 30.

if (!post('email')) {
    return ['status' =>  'fail'];
}

Also I would appreciate if you could add some more callback messages with different errors that is translatable so the frontend user gets some feedback if they have done anything wrong.

Also, don´t write in Polish in the confirmation email subject on line 47 in the same file. Please change it to english and make it translatable

inIT
inIT

Thank you very much for a helping hand!

We will publish new version when the October stable will be released.

Last updated

inIT
inIT

New version available in Marketplace :)

1-3 of 3