I had another thought: does your code use locale? (I noticed that your location is Brazil.) Under use locale, perl -T won't trust /\w/ unless you specifically tell it so. For example, in your untaint you would use:
See Laundering and Detecting Tainted Data in perlsec, and the SECURITY section of perllocale.{ no locale; if ( $string =~ /([\w\-\_]+)/ ) { $clean_string = $1; } else { die "ilegal character: $!"; } }
the lowliest monk
In reply to Re: Unlink under taint mode
by tlm
in thread Unlink under taint mode
by Andre_br
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |