source:
trunk/essentials/dev-lang/perl/lib/tainted.pl
| Last change on this file was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 164 bytes | |
| Line | |
|---|---|
| 1 | # This subroutine returns true if its argument is tainted, false otherwise. |
| 2 | |
| 3 | sub tainted { |
| 4 | local($@); |
| 5 | eval { kill 0 * $_[0] }; |
| 6 | $@ =~ /^Insecure/; |
| 7 | } |
| 8 | |
| 9 | 1; |
Note:
See TracBrowser
for help on using the repository browser.
