User: sits    
  Date: 07/08/24 23:23:12

  Modified:    .        CHANGELOG
               lib/Codestriker/Http Input.pm
  Log:
  Remove leading and trailing whitespace from emails and other parameters.
  
  
  
  Index: CHANGELOG
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/CHANGELOG,v
  retrieving revision 1.213
  retrieving revision 1.214
  diff -u -r1.213 -r1.214
  --- CHANGELOG 18 Aug 2007 04:54:08 -0000      1.213
  +++ CHANGELOG 25 Aug 2007 06:23:12 -0000      1.214
  @@ -43,7 +43,8 @@
     in non-English locales.
   
   * When calculating metrics, make sure email addresses are handled in
  -  a case-insensitive manner.
  +  a case-insensitive manner.  Also remove trailing/leading whitespace
  +  from the addresses.
   
   * Handle topic text that starts with the UTF-8 BOM.
   
  
  
  
  
  
  Index: Input.pm
  ===================================================================
  RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Input.pm,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- Input.pm  21 Jul 2006 06:25:28 -0000      1.44
  +++ Input.pm  25 Aug 2007 06:23:12 -0000      1.45
  @@ -293,12 +293,13 @@
   }
   
   # Untaint the specified property, against the expected regular expression.
  +# Remove leading and trailing whitespace.
   sub _untaint($$$) {
       my ($self, $name, $regexp) = @_;
   
       my $value = $self->{$name};
       if (defined $value && $value ne "") {
  -     if ($value =~ /^(${regexp})$/) {
  +     if ($value =~ /^\s*(${regexp})\s*$/) {
            # Untaint the value.
            $self->{$name} = $1;
        } else {
  
  
  

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Codestriker-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/codestriker-commits

Reply via email to