Is the sanitize step necessary?  What would the performance hit be like 
on a large response, and is the added complexity worth the trouble 
considering all responses come from a controlled environment? You don't 
sanitize HTML or XML responses, I say just use eval inside a try/catch.

Thanks,
Colin

tobie wrote:
> Patch: http://dev.rubyonrails.org/ticket/7295
>
> and live tests:
> http://sandbox.tobielangel.com/prototype/rev_6028/trunk/test/unit/string.html
> http://sandbox.tobielangel.com/prototype/rev_6028/trunk/test/unit/ajax.html
>
> I'm having issues in IE (don't know if its the actual code or the
> testing that is causing the problem).
>
> The JSON sanitazing regex is taken from http://www.json.org/json.js
> with permission from Douglas Crockford.
>
> Would like to get as much feedback as possible so we can make it really
> bulletproof.
>
> Thanks,
>
> Tobie
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to