![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Should non-filename glob() results still be tainted?by kcott (Bishop) |
on Jan 10, 2021 at 02:13 UTC ( #11126684=perlquestion: print w/replies, xml ) | Need Help?? |
kcott has asked for the wisdom of the Perl Monks concerning the following question: The documentation for glob() has: "If non-empty braces are the only wildcard characters used in the glob, no filenames are matched, ..." In "perlsec: Taint mode", the long list of examples has (near the end):
I'm an extremely infrequent user of glob(); however, I thought it could be useful in a test I was writing yesterday. The code looked something like this:
I got a "tainted" message. This code fixed it:
I'm wondering if not tainting the values returned by a non-filename glob() would be a useful enhancement to Perl. I throw this open for discussion. — Ken
Back to
Seekers of Perl Wisdom
|
|