Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Perl doesn't like the first line, even if i untaint the $_suffix variable. Thanx a zillion...my $_suffix = `rsh fs3cm -l ccmroot "/home/ccm_root/bin/UpdateSettings +New.pl -r 62 -d $dbname"`; if ($_suffix =~ /(.+\s+.+\s+.+)/) # Untaint the scalar { $suffix = $1; # Pass the value to this scalar if successfully untai +nted } else # Otherwise exit the program with error message { $message = 'The remote shell command produced an error in this scrip +t.'; &display_page($message); # Create an HTML-page to display the messa +ge exit; } $message = "Database added to $file"; &display_page($message); exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Untainting backtick command data
by eserte (Deacon) on May 18, 2004 at 11:55 UTC | |
by OpelSpeed (Initiate) on May 18, 2004 at 13:07 UTC | |
by Tomte (Priest) on May 18, 2004 at 13:11 UTC | |
by OpelSpeed (Initiate) on May 19, 2004 at 09:04 UTC | |
|
Re: Untainting backtick command data
by Sidhekin (Priest) on May 18, 2004 at 11:59 UTC |