[wp-cvs] wordpress/wp-admin upload.php,1.14.4.3,1.14.4.4

Mike Little mikelittle at users.sourceforge.net
Thu Nov 18 23:29:03 UTC 2004


Update of /cvsroot/cafelog/wordpress/wp-admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14768

Modified Files:
      Tag: WordPress-Ver-1_2-Branch
	upload.php 
Log Message:
cleanup filenames

Index: upload.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/upload.php,v
retrieving revision 1.14.4.3
retrieving revision 1.14.4.4
diff -C2 -d -r1.14.4.3 -r1.14.4.4
*** upload.php	8 Oct 2004 14:57:23 -0000	1.14.4.3
--- upload.php	18 Nov 2004 23:29:01 -0000	1.14.4.4
***************
*** 90,95 ****
      $imgdesc = htmlentities2($imgdesc);
  
!     $imgtype = explode(".",$img1_name);
!     $imgtype = strtolower($imgtype[count($imgtype)-1]);
  
      if (in_array($imgtype, $allowed_types) == false) {
--- 90,95 ----
      $imgdesc = htmlentities2($imgdesc);
  
!     $pi = pathinfo($img1_name);
!     $imgtype = strtolower($pi['extension']);
  
      if (in_array($imgtype, $allowed_types) == false) {




More information about the cvs mailing list