> mystring =
rereplace(mystring,"[#chr(1)#-#chr(8)##chr(11)#-#chr(12)##chr(14)#-#chr(31)#]","","ALL");

The only problem with this is that that you have to add stuff that you want
removed.

You could also list what's allowed, vs. what's not allowed, like

    <cffunction name="safeString" returntype="string" output="false">
        <cfargument name="stringToClean" required="true" type="string">
        <cfreturn
rereplacenocase(stringToClean,'[^a-z|A-Z|0-9|_]','','all')>
    </cffunction>

Which you never need to add to unless you need to add to it, so to speak.
Only useful if you don't know before hand what's gonna get entered i
guess... um... :-P Whatever. I go now.
:Den


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237316
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to