in reply to Untainting safely. (b0iler proofing?)
takes a string and removes all 'unsafe' (meta) charactersThat's too broad. What's unsafe to the shell is not unsafe to an email address, and vice versa.
And contrary to what I picked up from skimming that long article, the best way to keep the shell from interpreting unsafe characters is to not even use a shell at all! Most child process invocations can use a shell-less invocation (multiple arguments to system or exec), and then there's never a problem with the potential characters in the first place!
So, while I understand what you are trying to do, I don't understand why you are even trying to do it. You're starting at the wrong end of the picture.
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Untainting safely. (b0iler proofing?)
by tadman (Prior) on Jun 25, 2002 at 23:55 UTC | |
by merlyn (Sage) on Jun 26, 2002 at 00:02 UTC | |
by Anonymous Monk on Jun 26, 2002 at 01:26 UTC | |
by merlyn (Sage) on Jun 26, 2002 at 15:19 UTC | |
by BrowserUk (Patriarch) on Jun 26, 2002 at 21:28 UTC | |
| |
by epoptai (Curate) on Jun 26, 2002 at 00:38 UTC |