Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6673

Names with non-ascii characters are not correctly displayed in the "sender" field of the emails sent via the "Share this page" feature

    XMLWordPrintable

Details

    • Unknown

    Description

      This is because the encoding is incorrect.

      Replacing the line

      #set ($sender = "$sender <noreply@$!{request.localName}>")
      

      with

      #set ($sender = "=?UTF-8?Q?$escapetool.url($sender).replace('%', '=').replace('_', '=5F').replace('+', '_')?= <noreply@$!{request.localName}>")
      

      in shareinline.vm seems to do the trick, but it would be nice to have this fixed in the mailsender plugin or have a proper encoding function in the $escapetool.

      More about the correct encoding of the sender data here: http://tools.ietf.org/html/rfc2047#section-4.2

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              marta Marta Girdea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: