FlowingData Forums » your.flowingdata

Bug report: Ampersands in data input box

Started 4 months ago by brian / 6 posts

  1. If you use an ampersand when posting data on the site (not through twitter), anything after the ampersand is stripped out. So 'ate pb&j' is recorded as 'ate pb'.

    You can fix this by calling serialize() on the form instead of getting the message by using attr('value'). i.e. the line

    data: "message=" + message,

    could be changed to

    data: $('form#action_add').serialize(),

    The serialize() function will take care of escaping things like &s.

  2. sweet, a bug report with a solution. thanks, brian

  3. This still appears to be an issue for me.

  4. i've been traveling so haven't gotten around to it yet. it should be fixed later this week.

  5. Ah, OK. Just wanted to make sure it wasn't a different issue.

  6. hey guys, it should be okay now with the ampersand. thanks for letting me know.


Reply

You must log in to post.

About this Topic

Tags

No tags yet.