Diff for /loncom/interface/lonsupportreq.pm between versions 1.45 and 1.54

version 1.45, 2007/12/04 04:43:21 version 1.54, 2009/10/01 19:08:29
Line 99  sub print_request_form { Line 99  sub print_request_form {
                   rdes => 'You must include a description',                    rdes => 'You must include a description',
                   name => 'Name',                    name => 'Name',
                   subm => 'Submit Request',                    subm => 'Submit Request',
                   emad => 'E-mail address',                    emad => 'Your e-mail address',
                     emac => 'Cc', 
                   unme => 'username',                    unme => 'username',
                   doma => 'domain',                    doma => 'domain',
                   entu => 'Enter the username you use to log-in to LON-CAPA',                    entu => 'Enter the username you use to log-in to LON-CAPA',
Line 237  function initialize_codes() { Line 238  function initialize_codes() {
     if ($r->uri eq '/adm/helpdesk') {      if ($r->uri eq '/adm/helpdesk') {
         &print_header($r,$origurl);          &print_header($r,$origurl);
     }      }
       my @css = ('LC_evenrow_value','LC_oddrow_value');
       my $num = 1;
       my $i = $num%2;
     $r->print('<form method="post" name="logproblem" enctype="multipart/form-data">'."\n");      $r->print('<form method="post" name="logproblem" enctype="multipart/form-data">'."\n");
     my $output = &Apache::lonhtmlcommon::start_pick_box().      my $output = &Apache::lonhtmlcommon::start_pick_box().
                  &Apache::lonhtmlcommon::row_title($lt{'name'},undef,'LC_oddrow_value')."\n";                   &Apache::lonhtmlcommon::row_title($lt{'name'},undef,$css[$num])."\n";
     my $fullname = '';      my $fullname = '';
     if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) {      if ((defined($lastname) && $lastname ne '') && (defined($firstname) && $firstname ne '')) {
         $fullname = "$firstname $lastname";           $fullname = "$firstname $lastname"; 
Line 253  function initialize_codes() { Line 257  function initialize_codes() {
         $output .= '<input type="text" size="20" name="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />';          $output .= '<input type="text" size="20" name="username" value="'.&HTML::Entities::encode($fullname,'"<>&').'" />';
     }      }
     $output .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="'.$lt{'subm'}.'" onclick="validate()" />&nbsp;'.      $output .= '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="'.$lt{'subm'}.'" onclick="validate()" />&nbsp;'.
                 &Apache::lonhtmlcommon::row_closure()."\n".                  &Apache::lonhtmlcommon::row_closure()."\n";
                 &Apache::lonhtmlcommon::row_title($lt{'emad'},undef,'LC_evenrow_value').      $num ++;
                 '<input type="text" size="20" name="email" value="'.      $i = $num%2;
                 &HTML::Entities::encode($email,'"<>&').'" /><br />'."\n".      $output .= &Apache::lonhtmlcommon::row_title($lt{'emad'},undef,$css[$i]).
                 &Apache::lonhtmlcommon::row_closure().                 '<input type="text" size="20" name="email" value="'.
                 &Apache::lonhtmlcommon::row_title("$lt{'unme'}/$lt{'doma'}",undef,'LC_oddrow_value');                 &HTML::Entities::encode($email,'"<>&').'" /><br />'."\n".
                  &Apache::lonhtmlcommon::row_closure();
       $num ++;
       $i = $num%2;
       if (defined($env{'user.name'})) {
           $output .= &Apache::lonhtmlcommon::row_title($lt{'emac'},undef,$css[$i]).
                      '<input type="text" size="50" name="cc" value="" /><br />'."\n".
                      &Apache::lonhtmlcommon::row_closure();
           $num ++;
           $i = $num%2;
       }
       $output .= &Apache::lonhtmlcommon::row_title("$lt{'unme'}/$lt{'doma'}",undef,$css[$i]);
     my $udom_input = '<input type="hidden" name="udom" value="'.      my $udom_input = '<input type="hidden" name="udom" value="'.
                      &HTML::Entities::encode($udom,'"<>&').'" />';                       &HTML::Entities::encode($udom,'"<>&').'" />';
     my $uname_input = '<input type="hidden" name="uname" value="'.      my $uname_input = '<input type="hidden" name="uname" value="'.
Line 290  function initialize_codes() { Line 305  function initialize_codes() {
         }          }
         $output .= $unameform.$udomform;          $output .= $unameform.$udomform;
     }      }
     $output .= &Apache::lonhtmlcommon::row_closure().      $output .= &Apache::lonhtmlcommon::row_closure();
                &Apache::lonhtmlcommon::row_title("$lt{'urlp'}",undef,'LC_evenrow_value').      $num ++;
       $i = $num%2;
       $output .= &Apache::lonhtmlcommon::row_title("$lt{'urlp'}",undef,$css[$i]).
                $showserver.'<input type="hidden" name="sourceurl" value="'.                 $showserver.'<input type="hidden" name="sourceurl" value="'.
                &HTML::Entities::encode($server,'"<>&').'" />'.                 &HTML::Entities::encode($server,'"<>&').'" />'.
                &Apache::lonhtmlcommon::row_closure().                 &Apache::lonhtmlcommon::row_closure().
                &Apache::lonhtmlcommon::row_title("$lt{'phon'}",undef,'LC_oddrow_value').                 &Apache::lonhtmlcommon::row_title("$lt{'phon'}",undef,'LC_evenrow_value').
                '<input type="text" size="15" name="phone" /><br />'.                 '<input type="text" size="15" name="phone" /><br />'.
                &Apache::lonhtmlcommon::row_closure().                 &Apache::lonhtmlcommon::row_closure();
                &Apache::lonhtmlcommon::row_title("$lt{'crsd'}$details_title",undef,'LC_evenrow_value');      $num ++;
     if ($cnum) {       $i = $num%2; 
       $output .= &Apache::lonhtmlcommon::row_title("$lt{'crsd'}$details_title",undef,$css[$i]);
       if ($cnum) {
         if ($coursecodes{$cnum}) {          if ($coursecodes{$cnum}) {
             foreach my $item (@codetitles) {              foreach my $item (@codetitles) {
                 $output .= '<i>'.$item.'</i>:&nbsp;'.$codes{$cnum}{$item}.';&nbsp;';                  $output .= '<i>'.$item.'</i>:&nbsp;'.$codes{$cnum}{$item}.';&nbsp;';
Line 376  function initialize_codes() { Line 395  function initialize_codes() {
         $output .= '<br />'.$lt{'enct'}.':&nbsp;          $output .= '<br />'.$lt{'enct'}.':&nbsp;
                  <input type="text" name="title" size="25" value="" />'."\n";                   <input type="text" name="title" size="25" value="" />'."\n";
     }      }
     $output .= &Apache::lonhtmlcommon::row_closure().      $output .= &Apache::lonhtmlcommon::row_closure();
                &Apache::lonhtmlcommon::row_title($lt{'secn'},undef,'LC_oddrow_value');      $num ++;
       $i = $num%2;
       $output .= &Apache::lonhtmlcommon::row_title($lt{'secn'},undef,$css[$i]);
     if ($sectionlist) {      if ($sectionlist) {
         $output .= "<select name=\"section\"\n>".          $output .= "<select name=\"section\"\n>".
                    "  <option value=\"\" selected=\"selected\">$lt{'sele'}</option>\n";                     "  <option value=\"\" selected=\"selected\">$lt{'sele'}</option>\n";
Line 396  function initialize_codes() { Line 417  function initialize_codes() {
     } else {      } else {
         $output .= '<input type="text" name="section" size="10" />';          $output .= '<input type="text" name="section" size="10" />';
     }      }
     $output .= &Apache::lonhtmlcommon::row_closure().      $output .= &Apache::lonhtmlcommon::row_closure();
                &Apache::lonhtmlcommon::row_title($lt{'subj'},undef,'LC_evenrow_value').      $num ++;
       $i = $num%2; 
       $output .= &Apache::lonhtmlcommon::row_title($lt{'subj'},undef,'LC_oddrow_value').
                '  <input type="text" size="40" name="subject" />'."\n".                 '  <input type="text" size="40" name="subject" />'."\n".
                &Apache::lonhtmlcommon::row_closure().                 &Apache::lonhtmlcommon::row_closure().
                &Apache::lonhtmlcommon::row_title($lt{'detd'},undef,'LC_oddrow_value').                 &Apache::lonhtmlcommon::row_title($lt{'detd'},undef,'LC_evenrow_value').
                '  <textarea rows="10" cols="45" name="description" wrap="virtual"></textarea>'.                 '  <textarea rows="10" cols="45" name="description" wrap="virtual"></textarea>'.
                &Apache::lonhtmlcommon::row_closure();                 &Apache::lonhtmlcommon::row_closure();
     my $lastrow = 'LC_evenrow_value';      $num ++;
       $i = $num%2; 
     if (defined($env{'user.name'})) {      if (defined($env{'user.name'})) {
         $output .= &Apache::lonhtmlcommon::row_title($lt{'opfi'},undef,'LC_evenrow_value').          $output .= &Apache::lonhtmlcommon::row_title($lt{'opfi'},undef,$css[$i]).
                    ' <input type="file" name="screenshot" size="20" /><br />'.$lt{'uplf'}."\n".                     ' <input type="file" name="screenshot" size="20" /><br />'.$lt{'uplf'}."\n".
         &Apache::lonhtmlcommon::row_closure();          &Apache::lonhtmlcommon::row_closure();
         $lastrow = 'LC_oddrow_value';          $num ++;
           $i = $num%2; 
     }      }
     $output .= &Apache::lonhtmlcommon::row_title($lt{'fini'},undef,$lastrow);      $output .= &Apache::lonhtmlcommon::row_title($lt{'fini'},undef,$css[$i]);
     $output .= <<END;      $output .= <<END;
              <table border="0" cellpadding="8" cellspacing="0">               <table border="0" cellpadding="8" cellspacing="0">
               <tr>                <tr>
Line 470  sub print_request_receipt { Line 495  sub print_request_receipt {
     }      }
     my %lt = &Apache::lonlocal::texthash (      my %lt = &Apache::lonlocal::texthash (
                  username    => 'Name',                   username    => 'Name',
                  email       => 'Email',                   email       => 'E-mail',
                    cc          => 'Cc',
                  user        => 'Username/domain',                   user        => 'Username/domain',
                  phone       => 'Phone',                   phone       => 'Phone',
                  crsi        => 'Course Information',                   crsi        => 'Course Information',
Line 486  sub print_request_receipt { Line 512  sub print_request_receipt {
                  info        => 'Information supplied',                   info        => 'Information supplied',
                  adin        => 'Additional information recorded',                   adin        => 'Additional information recorded',
     );      );
    
       my (@ok_ccs,@bad_ccs,$badccmsg,$okcclist);
       if ((defined($env{'user.name'})) && (defined($env{'form.cc'}))) {
           my @ccs;
           if ($env{'form.cc'} =~ /,/) {
               @ccs = split(/,/,$env{'form.cc'});
           } else {
               $env{'form.cc'} =~ s/^\s+//;
               $env{'form.cc'} =~ s/\s+$//;
               @ccs = $env{'form.cc'};
           }
           foreach my $cc (@ccs) {
               $cc =~ s/^\s+//g;
               $cc =~ s/\s+$//g;
               if ($cc =~ m/^[^\@]+\@[^\@]+$/) {
                   if (!(grep(/^\Q$cc\E$/,@ok_ccs))) {
                       push(@ok_ccs,$cc);
                   }
               } else {
                   if (!(grep(/^\Q$cc\E$/,@bad_ccs))) {
                       push(@bad_ccs,$cc);
                   }
               }
           }
           if (@ok_ccs > 0) {
              $okcclist = join(', ',@ok_ccs); 
           } 
           if (@bad_ccs == 1) {
               $badccmsg .= '<br />'.&mt('The following Cc e-mail address is invalid: ').$bad_ccs[0];
           } elsif (@bad_ccs > 1) {
               my $bad_cc_string = join(', ',@bad_ccs);
               $badccmsg .= '<br />'.&mt('The following Cc e-mail addresses are invalid: ').$bad_cc_string;
           }
       }
     $env{'form.user'} = "'".$env{'form.uname'}.':'.$env{'form.udom'}."'";      $env{'form.user'} = "'".$env{'form.uname'}.':'.$env{'form.udom'}."'";
     $env{'form.csri'} = $env{'form.title'}.' - '.$coursecode.' - '.$lt{'sect'}.': '.$env{'form.section'};      $env{'form.csri'} = $env{'form.title'}.' - '.$coursecode.' - '.$lt{'sect'}.': '.$env{'form.section'};
     my $supportmsg = <<END;      my $supportmsg = <<END;
 $lt{'username'}: $env{'form.username'}  $lt{'username'}: $env{'form.username'}
 $lt{'email'}: $env{'form.email'}  $lt{'email'}: $env{'form.email'}
   $lt{'cc'}: $okcclist
 $lt{'user'}: $env{'form.user'}  $lt{'user'}: $env{'form.user'}
 $lt{'phone'}: $env{'form.phone'}  $lt{'phone'}: $env{'form.phone'}
 $lt{'crsi'}: $env{'form.csri'}  $lt{'crsi'}: $env{'form.csri'}
Line 502  $lt{'date'}: $reporttime Line 562  $lt{'date'}: $reporttime
   
 END  END
     my $displaymsg;      my $displaymsg;
     foreach my $item ('username','email','user','phone','crsi','subject','description','sourceurl') {      foreach my $item ('username','email','cc','user','phone','crsi','subject','description','sourceurl') {
         if ($env{'form.'.$item} ne '') {          if ($env{'form.'.$item} ne '') {
             if ($item eq 'description') {              if ($item eq 'description') {
                 my $descrip = $env{'form.description'};                  my $descrip = $env{'form.description'};
                 $descrip =~ s|\n|<br />|g;                  $descrip =  &cleanup_html($descrip);
                   $descrip =~ s|[\n\r\f]|<br />|g;
                 $displaymsg .=                   $displaymsg .= 
                     '<span class="LC_helpform_receipt_cat">'.                      '<span class="LC_helpform_receipt_cat">'.
                     "$lt{$item}</span>: $descrip<br />\n";                      "$lt{$item}</span>: $descrip<br />\n";
             } elsif ($item eq 'sourceurl') {              } elsif ($item eq 'sourceurl') {
                 my $showurl = $env{'form.sourceurl'};                  my $showurl = $env{'form.sourceurl'};
                 $showurl =~ s/\?.*$//;                  $showurl =~ s/\?.*$//;
                   $showurl =  &cleanup_html($showurl);
                 $displaymsg .=                   $displaymsg .= 
                     '<span class="LC_helpform_receipt_cat">'.                      '<span class="LC_helpform_receipt_cat">'.
                     "$lt{$item}</span>: $showurl<br />\n";                      "$lt{$item}</span>: $showurl<br />\n";
               } elsif ($item eq 'cc') {
                   $displaymsg .=
                       '<span class="LC_helpform_receipt_cat">'.
                       "$lt{$item}</span>: $okcclist<br />\n";
             } else {              } else {
                   my $showitem = $env{'form.'.$item};
                   $showitem = &cleanup_html($showitem);
                 $displaymsg .=                   $displaymsg .= 
                     '<span class="LC_helpform_receipt_cat">'.                      '<span class="LC_helpform_receipt_cat">'.
                     "$lt{$item}</span>: $env{'form.'.$item}<br />\n";                      "$lt{$item}</span>: $showitem<br />\n";
             }              }
         }          }
     }      }
Line 549  END Line 617  END
         my @ok_email;           my @ok_email; 
         foreach my $email (split(/,/,$to)) {          foreach my $email (split(/,/,$to)) {
             if ($email =~ m/^[^\@]+\@[^\@]+$/) {              if ($email =~ m/^[^\@]+\@[^\@]+$/) {
                 push(@ok_email,$email);                  if (!grep(/^\Q$email\E$/,@ok_email)) {
                       push(@ok_email,$email);
                   }
             }              }
         }          }
         if (@ok_email > 0) {          if (@ok_email > 0) {
Line 575  END Line 645  END
         $r->print('<h3>'.$lt{'asup'}.' '.$to.'</h3>');          $r->print('<h3>'.$lt{'asup'}.' '.$to.'</h3>');
     }      }
     if (defined($env{'form.email'})) {      if (defined($env{'form.email'})) {
           $env{'form.email'} =~ s/^\s+//;
           $env{'form.email'} =~ s/\s+$//;
         if ($env{'form.email'} =~ m/^[^\@]+\@[^\@]+$/) {          if ($env{'form.email'} =~ m/^[^\@]+\@[^\@]+$/) {
             $from = $env{'form.email'};              $from = $env{'form.email'};
         }          }
     }      }
   
       if (defined($env{'form.cc'})) {
           if ($badccmsg) {
               $displaymsg .= $badccmsg;
           }
       }
   
     my $subject = $env{'form.subject'};      my $subject = $env{'form.subject'};
     $subject =~ s/(`)/'/g;      $subject =~ s/(`)/'/g;
     $subject =~ s/\$/\(\$\)/g;      $subject =~ s/\$/\(\$\)/g;
Line 610  END Line 688  END
   
     if ($attachmentpath =~ m-/([^/]+)$-) {      if ($attachmentpath =~ m-/([^/]+)$-) {
         $fname = $1;          $fname = $1;
         $displaymsg .= '<br />'.&mt('An uploaded screenshot file \'[_1]\' ([_2] bytes) was included in the request sent by [_3].',$fname,$attachmentsize,$env{'user.name'}.': '.$env{'user.domain'});          $displaymsg .= '<br />'
                         .&mt('An uploaded screenshot file [_1] ([_2] bytes) was included in the request sent by [_3].'
                             ,'<span class="LC_filename">'.$fname.'<span>'
                             ,$attachmentsize
                             ,$env{'user.name'}.':'.$env{'user.domain'}
                          );
         $supportmsg .= "\n";          $supportmsg .= "\n";
         foreach my $var (@cookievars) {          foreach my $var (@cookievars) {
             $supportmsg .= "$var: $cookies{$var}\n";              $supportmsg .= "$var: $cookies{$var}\n";
Line 630  END Line 713  END
                  Type    =>'TEXT',                   Type    =>'TEXT',
                  Data    => $supportmsg,                   Data    => $supportmsg,
                  );                   );
       if (@ok_ccs > 0) {
           my $cc_string = join(', ',@ok_ccs);
           $msg->add("Cc" => $cc_string);
       }
   
     if ($attachmentpath) {      if ($attachmentpath) {
         my ($type, $encoding) = MIME::Types::by_suffix($attachmentpath);          my ($type, $encoding) = MIME::Types::by_suffix($attachmentpath);
Line 705  sub print_header { Line 792  sub print_header {
                                            login => 'Log-in help',                                             login => 'Log-in help',
                                            ask   => 'Ask helpdesk',                                             ask   => 'Ask helpdesk',
                                            getst => 'Getting started guide',                                             getst => 'Getting started guide',
                                            back =>  'Back to last location'                                             back =>  'Back to last location',
                                              headline => 'help/support',
                                          );                                           );
     my ($getstartlink,$getstarttext);      my ($getstartlink,$reviewtext);
     if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') {      if (-e $Apache::lonnet::perlvar{'lonDocRoot'}.'/adm/gettingstarted.html') {
         $getstartlink = qq|<td align="center">&nbsp;<b><a href="/adm/gettingstarted.html">$lt{'getst'}</a></td>|;          $getstartlink = qq|<td align="center">&nbsp;<b><a href="/adm/gettingstarted.html">$lt{'getst'}</a></td>|;
         $getstarttext = ' '.&mt('and the "Getting started" guide').' ';          $reviewtext = &mt('Please review the information in "Log-in help" and the "Getting started" guide if you are unable to log-in.');
       } else {
           $reviewtext = &mt('Please review the information in "Log-in help" if you are unable to log-in.');
     }      }
     $r->print(<<END);      $r->print(<<END);
 <table width="620" border="0" cellspacing="0" cellpadding="0" height="55">   <tr height="50">    <td width='5'>&nbsp;</td>  <table width="620" border="0" cellspacing="0" cellpadding="0" height="55">   <tr height="50">    <td width='5'>&nbsp;</td>
    <td>     <td>
     <fieldset><legend><img src="$location/lonIcons/minilogo.gif" height='20' width='29' valign='bottom' />&nbsp;&nbsp;<b><font size="+1">LON-CAPA help/support</font></b></legend>      <fieldset>
         <legend>
           <img src="$location/lonIcons/minilogo.gif" height="20" width="29" valign="bottom" />
           LON-CAPA $lt{'headline'}
         </legend>
  <table id="LC_helpmenu_links">   <table id="LC_helpmenu_links">
    <tr>     <tr>
     <td align="center"><span class="LC_nobreak"><img src="$location/help/gif/smallHelp.gif" border="0" alt="($lt{'login'})" valign="middle" />&nbsp;<b><a href="/adm/loginproblems.html">$lt{'login'}</a></b>&nbsp;</span></td>      <td align="center"><span class="LC_nobreak"><img src="$location/help/help.png" border="0" alt="($lt{'login'})" valign="middle" />&nbsp;<b><a href="/adm/loginproblems.html">$lt{'login'}</a></b>&nbsp;</span></td>
     <td align="center"><span class="LC_nobreak">&nbsp;<b>$helpdesk_link<img src="$location/lonIcons/helpdesk.gif" border="0" alt="($lt{'ask'})" valign="middle" />&nbsp;$lt{'ask'}</a></b>&nbsp;</span></td>$getstartlink      <td align="center"><span class="LC_nobreak">&nbsp;<b>$helpdesk_link<img src="$location/lonIcons/helpdesk.gif" border="0" alt="($lt{'ask'})" valign="middle" />&nbsp;$lt{'ask'}</a></b>&nbsp;</span></td>$getstartlink
     <td align="center"><span class="LC_nobreak">&nbsp;<b><a href="$origurl" target="_top"><img src="$location/lonIcons/move_up.gif" border="0" alt="($lt{'back'})" valign="middle" />&nbsp;$lt{'back'}</a></b>&nbsp;</span></td>      <td align="center"><span class="LC_nobreak">&nbsp;<b><a href="$origurl" target="_top"><img src="$location/lonIcons/move_up.gif" border="0" alt="($lt{'back'})" valign="middle" />&nbsp;$lt{'back'}</a></b>&nbsp;</span></td>
    </tr>     </tr>
Line 734  END Line 828  END
     if  ($command ne 'process') {      if  ($command ne 'process') {
         $r->print('          $r->print('
  <tr>   <tr>
   <td colspan="3">'.&mt('    <td colspan="3">'.$reviewtext.' '
 Please review the information in "Log-in help"').$getstarttext.' '.&mt('if you are unable to log-in').'.  '.&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk').'.<br /><font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' '.&mt('Contact your instructor instead.').'</font><br /><br />  .&mt('If your problem is still unresolved, the form below can be used to send a question to the LON-CAPA helpdesk.').'<br />'
   .'<font size="-1"><b>'.&mt('Students').'</b>: '.&mt('Do <b>not</b> use this form to ask questions about course content.').' '
   .&mt('Contact your instructor instead.')
   .'</font><br /><br />
   </td>    </td>
  </tr>');   </tr>');
     }      }
Line 753  sub get_domain { Line 850  sub get_domain {
     } elsif ($env{'request.role.domain'}) {      } elsif ($env{'request.role.domain'}) {
         $codedom = $env{'request.role.domain'};          $codedom = $env{'request.role.domain'};
     } else {      } else {
         $codedom = $Apache::lonnet::perlvar{'lonDefDomain'};          $codedom = &Apache::lonnet::default_login_domain();
     }      }
     return $codedom;      return $codedom;
 }  }
   
   sub cleanup_html {
       my ($incoming) = @_;
       my $outgoing;
       if ($incoming ne '') {
           $outgoing = $incoming;
           $outgoing =~ s/\#/&#035;/g;
           $outgoing =~ s/\&/&#038;/g;
           $outgoing =~ s/</&#060;/g;
           $outgoing =~ s/>/&#062;/g;
           $outgoing =~ s/\(/&#040/g;
           $outgoing =~ s/\)/&#041;/g;
           $outgoing =~ s/"/&#034;/g;
           $outgoing =~ s/'/&#039;/g;
           $outgoing =~ s/\$/&#036;/g;
       }
       return $outgoing;
   }
   
 1;  1;

Removed from v.1.45  
changed lines
  Added in v.1.54


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>