• Resolved clementrectangle

    (@clementrectangle)


    Hi,

    I noticed a little bug with the confirmation messages sanitization :
    When saving the form, you’re apparently applying a sanitization process to escape characters like apostrophes and things like this.

    For example, when I’m saving the form with this sentence :
    “Cette adresse email n’est pas valide”
    The apostrophe is escaped and the string becomes :
    “Cette adresse email n\’est pas valide”

    Everything’s fine at this point, but the problem occurs on next saves : the “\” are escaped too, so each new save will multiply those :

    2nd save : “Cette adresse email n\\\’est pas valide”
    3rd save : “Cette adresse email n\\\\\\\’est pas valide”

    And so on…

    Is this something you could fix ? thanks 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Brevo

    (@neeraj_slit)

    Hello @clementrectangle ,

    thanks for reporting the bug.

    Can you please confirm that you use latest version of the plugin? And does that happen also with new created forms?

    Regards,
    Sendinblue Team

    Hi,

    I have the same problem with the last version of the plugin and the last version of WordPress.

    And when I subscribe to my newsletter form, I’m redirect on a white page with the message : {“status”:”success”,”msg”:{“successMsg”:”Vous \u00eates d\u00e9sormais inscrit !”,”errorMsg”:”Une erreur est survenue”,”existMsg”:”Vous \u00eates d\u00e9j\u00e0 inscrit”,”invalidMsg”:”Cette adresse email n\\'est pas valide”},”redirect”:””}

    Can you fix this bug ?

    Regards

    Thread Starter clementrectangle

    (@clementrectangle)

    Oh sorry, I forgot to answer to this… Thanks @agencemorgane for reminding me 🙂

    Yes I’m using the last version of wordpress and the plugin, and yes, it happens on nealy created forms too.

    Thanks for looking into it 😉

    Hi !
    @neeraj_slit could you fix it ?

    Same problem here

    When I subscribe a form, I’m redirect on a white page with the message : {“status”:”success”,”msg”:{“successMsg”:”Vous \u00eates d\u00e9sormais inscrit !”,”errorMsg”:”Une erreur est survenue”,”existMsg”:”Vous \u00eates d\u00e9j\u00e0 inscrit”,”invalidMsg”:”Cette adresse email n\\’est pas valide”},”redirect”:””}

    Same problem here

    {“status”:”success”,”msg”:{“successMsg”:”Thank you for completing the form. We will be in contact shortly”,”errorMsg”:”Something wrong occured”,”existMsg”:”You have already registered”,”invalidMsg”:”Your email address is invalid”},”redirect”:”https:\/\/xxxxxxx.com\/thank-you”}

    Plugin Author Brevo

    (@neeraj_slit)

    Hi @clementrectangle, @agencemorgane, @romarinmarin & @emsieh

    Thank you all for taking the time to share this with us and please accept our apologies for the delay in our reply.

    We will look into this and get back to you as soon as we can share details of when this will be fixed on this thread.

    In the meantime, thank you for your understanding and we wish you a great day!

    Best regards,
    Sendinblue Customer Care

    Plugin Author Brevo

    (@neeraj_slit)

    Hi @clementrectangle, @agencemorgane, @romarinmarin & @emsieh

    Thank you for holding on while we looked into this.

    We can confirm that this has been fixed in the recent plugin updates.

    Please upgrade the plugin to the latest version and create new forms instead of using the old ones.

    If the issue persists we will need to look into this on a case by case basis so please create a support ticket through your Sendinblue account or email us at support@sendinblue.com and provide us with admin access to your WordPress account (login url, username and password).

    Best regards,
    Sendinblue Customer Care

    Thread Starter clementrectangle

    (@clementrectangle)

    About the problem I had (not the same than the last guys who posted), it’s still here. The single quotes and slashes in confirmation messages are still escaped when saved :

    “Cette adresse email n’est pas valide”
    BECOMES
    “Cette adresse email n\’est pas valide”
    BECOMES
    “Cette adresse email n\\\’est pas valide”

    and so on…

    That being said : I noticed that the message displayed on frontend (for invalid email address) isn’t even the one I entered in those fields, it’s an other (correct) sentence in french. I don’t get what’s going on…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Bug with confirmation messages sanitization on form save (in admin panel)’ is closed to new replies.