Issue Bug Closed

#90224Spamprotection anomalies when writing &subject Parameter

Lukas Dörr 01/28/20, 09:06 updated 01/06/22, 16:29

Description

I recently found out, that you can`t use more than one word in the &subject Parameter when creating a mailto: link in typo3.
So the “spaces” will be replaced with some random signs (mostly @).

Try it yourself:
config.spamProtectEmailAddresses = 1

and then write this:
mailto://info@info.de&subject=hello%20world

or without %20.

this spits out: hello@world in the subject field.

without spamProtection it works normal.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 6

  1. Andreas Kienast commented and changed status New Needs Feedback 03/24/20, 08:05

    Thank you for your report.

    I fail to reproduce this issue in latest master and 9.5.15-dev.
    Can you please describe step-by-step what you’re doing to reproduce the issue?

    Kind regards
    Andreas

  2. Lukas Dörr commented 05/18/20, 14:19

    Andreas Fernandez wrote:
    > Thank you for your report.
    >
    > I fail to reproduce this issue in latest master and 9.5.15-dev.
    > Can you please describe step-by-step what you’re doing to reproduce the issue?
    >
    > Kind regards
    > Andreas

    just create a link and add the title parameter, as you do by adding it in your href link.
    Like this:

    mailto:no-one@snai1mai1.com?subject=free chocolate

    This will show some garbadge in url and in your mail client if you click on it.

  3. Riccardo De Contardi commented 05/26/20, 01:29

    I tried with latest 10.4.4-dev (latest master) and the following test:

    1) TS Setup:

    config.spamProtectEmailAddresses = 1

    2) Create a text content element, write some text, use wizard to add a link

    type: email
    email address:

    test@gmail.com?subject=this%20is%20a%20subject

    result: the javascript encrypts everything; clicking on the address my mail client opens with the address and subject correctly filled.

    The only weird result I got was when using a space instead of %20: in this case part of the subject became the attribute target (!) of the link

  4. Benni Mack commented 01/06/22, 14:15

    Can you try again with the latest 10.4.22 ? We changed a lot of things (regarding security) in this area.

  5. Lukas Dörr commented 01/06/22, 14:28

    Benni Mack wrote in #note-4:
    > Can you try again with the latest 10.4.22 ? We changed a lot of things (regarding security) in this area.

    I can confirm it works now – Text is shown normal, even with encrypted mail address activated.

    https://imgur.com/a/kKCGLgl

  6. Benni Mack commented and changed status Needs Feedback Closed 01/06/22, 16:29

    Thanks for the super-fast reply, closing this issue now!