taint.t
来自「source of perl for linux application,」· T 代码 · 共 24 行
T
24 行
#!./perl -Tw# [perl #33173] shellwords.pl and taintingBEGIN { chdir 't' if -d 't'; @INC = '../lib'; require Config; if ($Config::Config{extensions} !~ /\bList\/Util\b/) { print "1..0 # Skip: Scalar::Util was not built\n"; exit 0; }}use Text::ParseWords qw(shellwords old_shellwords);use Scalar::Util qw(tainted);print "1..2\n";print "not " if grep { not tainted($_) } shellwords("$0$^X");print "ok 1\n";print "not " if grep { not tainted($_) } old_shellwords("$0$^X");print "ok 2\n";
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?