Form submission failing if any browser Cookie has two or more encoded spaces | Community
Skip to main content
Mike_Rojas
New Participant
August 10, 2021
Question

Form submission failing if any browser Cookie has two or more encoded spaces

  • August 10, 2021
  • 1 reply
  • 3161 views

Hello, We have been having an issue with our embedded forms submissions not getting logged/saved in Marketo... This only happens if the user that submitted the form has a (can be any name) cookie with a value that has two or more encoded spaces (yes it can have one, but no more!).  We have tested on a mkto landing page with no extra scripts and only a single cookie in the browser with the two or more encoded spaces, submit the form, then check for the user activity but nothing will be there.  As soon as we clear the cookie or reduce the encoded spaces to one or none then submit the form we see the form activity.  

 

Example Cookie value that will fail
Encoded: my%0Acookie%0Ahas%0Afour%0Aspaces
Decoded: my cookie has four spaces


Example Cookie value that will work
Encoded: mycookie%0Ahasonespace
Decoded: mycookie hasonespace

 

Curious if anyone else has seen this issue?  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
New Participant
August 10, 2021

Please link to your test page.

 

Also —

  • I assume you’re seeing an error in the Console if the form is truly not being submitted.  What is that error?
  • %0A is whitespace (a line break) but not a “space“ (%20). Are you seeing this for %20 as well?
SanfordWhiteman
New Participant
August 11, 2021

btw can’t reproduce this at all.

Mike_Rojas
New Participant
August 12, 2021

Clarifying the issue.... The form submission will appear to work for the end user.  But if you look at the marketo database the user activity/submission does not show at all.  So the issue is more on the marketo backend and how its parsing the cookies (cause we can only re re-create based on the cookie info I previously mentioned).

 

Test page used: https://p.highspot.com/Test-Marketo-001.html

When I submit this form with my own info and  DO NOT HAVE a cookie with 2 or more encoded spaces:

- the form will work as expected and take me to a TY

- the form submission and activity is logged/visible in the marketo database

 

When I submit this form with my own info and DO HAVE a cookie with 2 or more encoded spaces:

- the form will work as expected and take me to a TY

- the form submission and activity is NOT logged/visible in the marketo database