Clean up Safari's ajax POST body
Reported by josh | January 14th, 2009 @ 04:53 AM | in 1.0
Even after 3 years it seems like this may still be a problem.
It seems like that Safari always tacks on a trailing null character to the POST body of AJAX requests.
Can someone please verify this. I really would hate to put in hacks like this into Rack core but if means Safari AJAX requests won't work, we definitely should consider it. I'm probably overacting because it seems really old. I'd think it would be fixed by now. It would be great if someone knew some more history behind the issue.
Original patch: http://dev.rubyonrails.org/chang...
Comments and changes to this ticket
-
josh January 17th, 2009 @ 03:35 PM
- Milestone changed from 1.0 to 0.9
Still looking for feedback.
Apparently, it is only an issue in Safari 2.x though.
-
Yehuda Katz (wycats) January 18th, 2009 @ 02:05 AM
I'm pretty sure this is no longer an issue in Safari3, but since we're not really going to deprecate support for Safari2 in Rails, +1.
-
manveru January 18th, 2009 @ 12:55 PM
This will not work in 1.9, i propose an alternative:
form_vars.sub!(/\0\z/, '')
-
josh January 21st, 2009 @ 06:25 PM
- Milestone changed from 0.9 to 1.0
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป