|
5/28 |
2003/5/9-10 [Computer/SW/Languages/Perl, Computer/SW/Languages/Web] UID:28387 Activity:kinda low |
5/8 is there a perl equiv of the php "escapeshellarg()" function? \_ Tell us what escapeshellarg actually does (I can guess but...). I know perl but not php. I'm sure I'm not the only one. \_ I'm trying to untaint a var that i will pass to a shell cmd. I think $ARGV[0] =~ s(')('\\'')g should do it, but <shrug>. \_ You may want to look at quotemeta, but this sounds like an ugly hack. \_ open(FOO,"\Q$tainted\E |"); |