Metadecidim
Sign in

Process

Report a Bug

not yet on protocol

Special character like ampersand not accepted on email subject

Describe the bug

When using special character (ampersand, quote, double quote etc...) the email subject is displaying them as escaped. The email subject is not HTML IMHO, therefore HTML elements should not be escaped and should be displayed.

To Reproduce

  1. Create a particpatory space and use an ampersand in the name (like "Example & co")
  2. Create a proposal module and submit a proposal with the following title: "Proposal & else"
  3. Check the mail, it should have the following subject: "New proposal "Proposal & else" in Example & co"


Expected behavior

As a user I expect the email subject to be "New proposal "Proposal & else" in Example & co"

Documents

3 comments

  1. I've managed to fix the problem and could propose an implementation

    0 votes up 0 votes down
    1. Hi @Armand-OSP , what kind of fix did you implemented? Thank you!

      0 votes up 0 votes down
      1. Hi @ariadna_va ! Armand is off this week, but you can find his fix here: https://github.com/armandfardeau/decidim/pull/16/files

        We'd like to send it to decidim/decidim, as this bug happens a lot for Decidim french users

        1 votes up 0 votes down

Sign in with your Atmosphere account to comment.