This site uses cookies. By continuing to browse the site, you agree to our use of cookies. Find out more about cookies.
Skip to main content
Metadecidim's official logo
  • English Triar la llengua Elegir el idioma Choose language
    • Català
    • Castellano
Sign Up Sign In
  • Home
  • Processes
  • Assemblies
  • Initiatives
  • Consultations
  • Conferences
  • Help

Report a Bug

#BugReportDecidim Let's test Decidim and report bugs together

  • The process
  • I found a Bug!
chevron-left Back to list

Special character like ampersand not accepted on email subject

Avatar: Armand Armand
15/10/2020 13:28  

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"

  • Filter results for category: 0.20.x 0.20.x
Endorsements count0
Special character like ampersand not accepted on email subject Comments 3

Reference: MDC-PROP-2020-10-15763
Version number 1 (of 1) see other versions
Check fingerprint

Fingerprint

The piece of text below is a shortened, hashed representation of this content. It's useful to ensure the content hasn't been tampered with, as a single modification would result in a totally different value.

Value: cf9505ec53324371c667e7156fb35500ddf3b46537b4155801bbdbd080a45b94

Source: {"body":{"en":"<p><strong>Describe the bug</strong></p><p>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.</p><p><strong>To Reproduce</strong></p><ol><li>Create a particpatory space and use an ampersand in the name (like \"Example &amp; co\")</li><li>Create a proposal module and submit a proposal with the following title: \"Proposal &amp; else\"</li><li>Check the mail, it should have the following subject: \"New proposal \"Proposal &amp;amp; else\" in Example &amp;amp; co\"</li></ol><p><br></p><p><strong>Expected behavior</strong></p><p>As a user I expect the email subject to be \"New proposal \"Proposal &amp; else\" in Example &amp; co\"</p>"},"title":{"en":"Special character like ampersand not accepted on email subject"}}

This fingerprint is calculated using a SHA256 hashing algorithm. In order to replicate it yourself, you can use an MD5 calculator online and copy-paste the source data.

Share:

link-intact Share link

Share link:

Please paste this code in your page:

<script src="https://meta.decidim.org/processes/bug-report/f/210/proposals/15763/embed.js"></script>
<noscript><iframe src="https://meta.decidim.org/processes/bug-report/f/210/proposals/15763/embed.html" frameborder="0" scrolling="vertical"></iframe></noscript>

Related images

Capture_decran_2020-10-12_a_16.09.37.png
Capture_decran_2020-10-12_a_16.09.33.png

Report inappropriate content

Is this content inappropriate?

Reason

3 comments

Order by:
  • Older
    • Best rated
    • Recent
    • Older
    • Most discussed
Conversation with Armand
Avatar: Armand Armand
15/10/2020 13:29
  • Get link Get link

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

Avatar: Ariadna Vila Ariadna Vila
23/10/2020 09:34
  • Get link Get link

Hi @Armand-OSP , what kind of fix did you implemented? Thank you!

Avatar: Pauline Bessoles Pauline Bessoles verified-badge
29/10/2020 14:15
  • Get link Get link

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

Add your comment

Sign in with your account or sign up to add your comment.

Loading comments ...

  • Terms and conditions of use
  • About the community
  • Download Open Data files
  • Metadecidim at Twitter Twitter
  • Metadecidim at Instagram Instagram
  • Metadecidim at YouTube YouTube
  • Metadecidim at GitHub GitHub
Creative Commons License Website made with free software.
Decidim Logo

Confirm

OK Cancel

Please sign in

decidim Sign in with Decidim
Or

Sign up

Forgot your password?