minor patch to net::server

From: Erik Aronesty (zoneedit_at_gmail.com)
Date: 06/30/04


Date: 30 Jun 2004 09:59:34 -0700

1. Since i'm running with -T (please let me know the better way to do
this, code was ripped/merged from other NG posts regarding tainting)

sub hup_server {
  my $self = shift;
  $ENV{PATH} = '';
  $ENV{BASH_ENV} = '';

  $self->log(0,$self->log_time()." HUP'ing server");

  my $i;
  my @safe_command;
  for $i ( @{ $self->{server}->{commandline} } ) {
         if ($i =~ /^([-\@\w.\/:]+)$/) {
                 push(@safe_command, $1); # $data now untainted
         } else {
                 die "Bad data in `$i'"; # log this somewhere
         }
  }

  exec @safe_command;
}



Relevant Pages

  • Re: minor patch to net::server
    ... code was ripped/merged from other NG posts regarding tainting) ... > sub hup_server { ...
    (comp.lang.perl.modules)
  • Re: VB or C# for SQL Server
    ... Bob, ... I was just reading through the posts, and got to the part where you ... I was actually doing something similiar, where I needed to control the ... Public Sub Button_Click ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Multiple List Views ?
    ... Sorry about the quick posts just figured out the problem, ... > A circular control reference has been made. ... > Public Sub Sublstview_ItemActivate(ByVal sender As Object, ... >> AddHandler SubLstView.ItemActivate, AddressOf ...
    (microsoft.public.dotnet.languages.vb)
  • notinlist event gives error
    ... I have read the posts and visited the vb links related to this action, ... inserting the new item into the underlying table, the request to requery the ... Private Sub Combo0_NotInList(NewData As String, ...
    (microsoft.public.access.formscoding)
  • Re: Using a time Variant with OnTime
    ... I found your website metion in some posts a few days ago (you probably ... Private Sub ToggleButton1_Click ... Public nTime As Variant ...
    (microsoft.public.excel.programming)