in reply to Re: One true regexp for untainting windows filenames?
in thread One true regexp for untainting windows filenames?
It seems that despite the length of my post I still managed to leave out some pertinent information. Sorry! I use untaint_path() to check several filenames not just $^X. It just happens that this is the first test that encountered a weird path. So the question still stands even if $^X is safe.
On that topic, I am using the value of $^X in a qx// call. On Linux at least, if I don't untaint it, I get a nastygram about "insecure dependency." Should perl be a little smarter here?
As for the regexps themselves, I am embarrassed to say I just copied them from existing code. Now I will use the ones from File::Basename as cdarke suggested.
Thank you for your help.
--
જલધર
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: One true regexp for untainting windows filenames?
by ikegami (Patriarch) on Jan 09, 2009 at 05:14 UTC | |
by jaldhar (Vicar) on Jan 09, 2009 at 19:42 UTC | |
by ikegami (Patriarch) on Jan 09, 2009 at 19:59 UTC |