Update of /cvsroot/mhonarc/mhonarc/MHonArc/lib
In directory subversions:/tmp/cvs-serv32469

Modified Files:
        mhmimetypes.pl 
Log Message:
* Make sure supplied filename only contain printable non-whitespace
  ASCII characters.


Index: mhmimetypes.pl
===================================================================
RCS file: /cvsroot/mhonarc/mhonarc/MHonArc/lib/mhmimetypes.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** mhmimetypes.pl      23 Nov 2002 04:10:40 -0000      1.13
--- mhmimetypes.pl      16 Dec 2002 23:51:36 -0000      1.14
***************
*** 305,309 ****
      ## Else, filename given
      } else {
!       $fname =~ tr/ \t\n\r/_/;        # Convert spaces to underscore
      }
  
--- 305,310 ----
      ## Else, filename given
      } else {
!       # Convert invalid characters to underscores
!       $fname =~ tr/\0-\40\t\n\r\177-\377/_/;
      }
  

---------------------------------------------------------------------
To sign-off this list, send email to [EMAIL PROTECTED] with the
message text UNSUBSCRIBE MHONARC-DEV

Reply via email to