Problem with taint mode

Reply

Join Date: Jun 2006
Posts: 263
Reputation: Mushy-pea is an unknown quantity at this point 
Solved Threads: 1
Mushy-pea's Avatar
Mushy-pea Mushy-pea is offline Offline
Posting Whiz in Training

Problem with taint mode

 
0
  #1
Jan 7th, 2007
Hello everyone. I always run Perl scripts on a web server with

  1. #!/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:

  1. "-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?
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Problem with taint mode

 
0
  #2
Jan 7th, 2007
windows does not read/use the shebang line. I don't tknow what the work-around would be for this problem. It works with the http server (apache at leat) because apache for windows does some kind of unix/shebang line emulation.
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 494
Reputation: Puckdropper is an unknown quantity at this point 
Solved Threads: 21
Puckdropper Puckdropper is offline Offline
Posting Pro in Training

Re: Problem with taint mode

 
0
  #3
Jan 8th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Problem with taint mode

 
0
  #4
Jan 8th, 2007
good guess, but no, there is no taint module (or taint pragma).
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Perl Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC