Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFinNC 2009 (Raleigh, North Carolina) with: Zeljka Majetic
Ben Nadel at CFinNC 2009 (Raleigh, North Carolina) with: Zeljka Majetic@zeljkaNYC )

David

Member since Jan 9, 2012

Recent Blog Comments By David

  • Cleaning High Ascii Values For Web Safeness In ColdFusion

    Posted on Jan 9, 2012 at 3:09 PM

    When I added the following code to onRequestStart in app.cfc, it stripped out the special characters: for (key in URL) { if (not isJSON(URL[key])) { URL[key] = REReplace(URL[key],'[^\x20-\x7E\x0D\x09]','','all'); } } for (key in FORM) { if (not isJSON(FORM[key])) { FORM[key] = RERepl... read more »

  • Cleaning High Ascii Values For Web Safeness In ColdFusion

    Posted on Jan 9, 2012 at 12:03 PM

    It would be nice to "globally" or "automatically" sanitize all data that is persisted to the DB. Since I'm using ORM, I'm fooling around the preUpdate/preInsert events, but I'm wondering if anyone else has already tackled this? My JSON returns from AJAX calls show an "invali... read more »