| | |
Problem with taint mode
![]() |
Hello everyone. I always run Perl scripts on a web server with
at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I get:
I have tried using the T flag on the command line like it says but this has no effect. This happens whether I use #!"C:\Perl\bin\perl -T" (the actual location of Perl on my machine) or the UNIX style #!/usr/bin/perl -T. Does anyone know why this happens? Any help appriciated.
Steven.
EDIT: I do most testing of the app I am working on with apache on my machine. This reports a server error when I try to use taint mode as described above, which I assume is the same problem manifesting itself.
Perl Syntax (Toggle Plain Text)
#!/usr/bin/perl -T
at the top (i.e. taint mode on). I try to do the same when testing scripts on my local machine and this often works fine. But somtimes (when running from the command line) I get:
Perl Syntax (Toggle Plain Text)
"-T" is on the #! line, it must also be used on the command line at forum.cgi line 1
I have tried using the T flag on the command line like it says but this has no effect. This happens whether I use #!"C:\Perl\bin\perl -T" (the actual location of Perl on my machine) or the UNIX style #!/usr/bin/perl -T. Does anyone know why this happens? Any help appriciated.
Steven.
EDIT: I do most testing of the app I am working on with apache on my machine. This reports a server error when I try to use taint mode as described above, which I assume is the same problem manifesting itself.
Last edited by Mushy-pea; Jan 7th, 2007 at 3:09 pm.
The one question you should not ask when teaching a new language structure is "Do you understand?". Do you understand?
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
Can you
use taint;? Last edited by Puckdropper; Jan 8th, 2007 at 1:41 am.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Similar Threads
- Monitor is on Sleep Mode, I believe (Monitors, Displays and Video Cards)
- Problem installing SVCPK2 (Windows NT / 2000 / XP)
- Win XP pro start up problem (Windows NT / 2000 / XP)
- Bright green display problem (Windows NT / 2000 / XP)
Other Threads in the Perl Forum
- Previous Thread: Perl 6 and Haskell
- Next Thread: Parsing Problem
| Thread Tools | Search this Thread |





