G
Grok
I need an elegant way to remove any characters in a string if they are
not in an allowed char list. The part cleaning files of the
non-allowed characters will run as a service, so no forms here.
The list also needs to be editable by the end-user so I'll be
providing a form on which they can edit the allowed character list.
The end-user is non-technical so asking them to type a regular
expression is out.
Is there anything in the framework 2.0 to clean a string of unwanted
characters, or better, clean any characters not in an allow list?
Seems like there would be to clean SQL strings to prevent injection
attacks.
not in an allowed char list. The part cleaning files of the
non-allowed characters will run as a service, so no forms here.
The list also needs to be editable by the end-user so I'll be
providing a form on which they can edit the allowed character list.
The end-user is non-technical so asking them to type a regular
expression is out.
Is there anything in the framework 2.0 to clean a string of unwanted
characters, or better, clean any characters not in an allow list?
Seems like there would be to clean SQL strings to prevent injection
attacks.