mdlbear: blue fractal bear with text "since 2002" (Default)
[personal profile] mdlbear
Good talk in the early afternoon sessions, with the fascinating title "The Madness of AJAX". Some good, scary demos. If you have an AJAX app, make sure you validate data *on the server!!* DO NOT trust the client-side code, even if you think you wrote it. Other client-side processes can change it.

Date: 2006-07-27 06:50 pm (UTC)
madfilkentist: My cat Florestan (gray shorthair) (Tux)
From: [personal profile] madfilkentist
Can you point me at a reference? Some people where I work are getting enthusiastic about Ajax. I distrust anything with JavaScript in it.

Date: 2006-07-28 03:20 am (UTC)
From: [identity profile] aerowolf.livejournal.com
It's exactly the same problem with form data. Just because you wrote the HTML that you sent out doesn't mean that it's going to be the same form's data that comes back. ALWAYS check your input, since the client is BY DEFINITION an untrusted source.

Date: 2006-07-28 10:00 am (UTC)
madfilkentist: My cat Florestan (gray shorthair) (Tux)
From: [personal profile] madfilkentist
That makes sense to me. But our SOP for bad form data seems to be "Crash in the most obscure way possible."

Date: 2006-07-30 05:21 am (UTC)
From: [identity profile] aerowolf.livejournal.com
Crashing in obscure ways isn't a bad thing... as long as you ensure that you crash SAFELY.

You don't want to put untrusted data into the stack unchecked, for example.

Most Popular Tags

Style Credit

Page generated 2025-05-17 07:02 am
Powered by Dreamwidth Studios