in reply to Unlink under taint mode
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Right on the point!
by Andre_br (Pilgrim) on Apr 12, 2005 at 00:37 UTC |