• Resolved Linus

    (@lhaake)


    Hello,

    After searching for a solution for some hours now, I’m sorry to bother with the following issue, however it did work until most likely one of the last updates:

    We are sending automated mails with something like the following to some users:

    https://EXAMPLE.net/quarantaene-freischaltung/?+1&c=mail2.EXAMPLE.de&b=<[email protected]>&a=banned-20190814T224339-15835-01

    The user (should) confirm with the following form that he would like to receive a quarantined message:

    [dynamichidden dynamichidden-969 "CF7_GET key='c'"]
    
    <p>Ihre E-Mail-Adresse<br/>
    [dynamictext* dynamictext-166 readonly required "CF7_GET key='b'"]
    
    <p>Der Code der gewünschten Nachricht<br/>
    [dynamictext* dynamictext-246 readonly required "CF7_GET key='a'"]
    
    <p>Bla bla and so on...<br />
    [acceptance acceptance-510]
    
    <p>[submit "Senden"]</p>

    Finally, a confirmation is then being sent to release the desired mail. Unfortunately, all fields are being filled, except the one with the mail address, it remains to be empty. My assumption is that the angle brackets are causing this, however I’m not aware how to remove them.

    Any suggestion how to avoid this behavior? I hope the description is comprehensible.

    Many thanks in advance

    Linus

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think I’m having the same problem. I’ve used standard contact form now. Not sure this is what you’re looking for:

    [hidden email2 default:get]

    Edit : I stand corrected. It’s actually the use of a key named email that fails – email2 works for both plugins.

    • This reply was modified 5 years, 7 months ago by theollaps.
    Thread Starter Linus

    (@lhaake)

    It’s actually the case that when the user opens the URL in his Browser, everything is appearing in the forms fields, except from the mailadress.

    https://EXAMPLE.net/quarantaene-freischaltung/?+1&c=mail2.EXAMPLE.de&amp;b=<[email protected]>&a=banned-20190814T224339-15835-01

    If I modify and open the URL without the angle brackets, it works like a charm. I would love to create the link without the brackets and work around the problem, but I cannot convince amavisd-new on the related mailrelay not to send the mailadress without it.

    Earlier the days, I could work around with adding another angle bracket left and right to the url, unfortunately this also does not seem to work anymore.

    Thread Starter Linus

    (@lhaake)

    Meanwhile I managed to change the link to the following (which was a workaround earlier):

    https://EXAMPLE.net/quarantaene-freischaltung/?+1&c=mail2.EXAMPLE.de&b=<<[email protected]>>&a=banned-20190814T224339-15835-01

    The result is that it’s now only showing <> in the form field, the mail address is still missing…
    If if I change the variable for this field from “b” to “a” it is being populated.
    So the issue just seems to be with the bloody angle brackets I cannot get rid of.

    Plugin Author sevenspark

    (@sevenspark)

    Hi Linus,

    The short answer is that < and > are unsafe characters and are not allowed in the query string of a URL.

    So, if you need those characters inside the query string, they need to be encoded.

    However, I’d just recommend removing them from the query string altogether, I don’t think they are necessary.

    More info here:

    https://www.w3schools.com/tags/ref_urlencode.asp

    https://perishablepress.com/stop-using-unsafe-characters-in-urls/

    Hope that helps!

    Thread Starter Linus

    (@lhaake)

    Hello,

    Thanks for coming back, unfortunately it only explains why you removed them for a very good reason. Nevertheless, within the creation of the url the users receives, there is now way around the fact that the only usable variable is the one where the address is coming with the brackets.

    I hoped there would be a way around it whilst handing over into the contact-form-7, of course they are not necessary, but do exist.

    [dynamictext dynamictext-166 readonly required “CF7_GET key=‘b’“]

    However, thanks for your attempt to help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“CF7_GET key” value does not appear in form’ is closed to new replies.