mhonarc-commits
[Top] [All Lists]

CVS: mhonarc/MHonArc/lib mhmimetypes.pl,1.13,1.14

2002-12-16 16:51:44
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 majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV