Skip to main content
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Jamie Krug
Ben Nadel at cf.Objective() 2010 (Minneapolis, MN) with: Jamie Krug@jamiekrug )

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] = REReplace(F... 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 »