[wp-cvs] wordpress/wp-admin upload.php,1.23,1.24

Matthew Mullenweg saxmatt at users.sourceforge.net
Mon Jan 31 10:24:07 GMT 2005


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

Modified Files:
	upload.php 
Log Message:
http://mosquito.wordpress.org/view.php?id=430

Index: upload.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-admin/upload.php,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** upload.php	31 Jan 2005 10:17:48 -0000	1.23
--- upload.php	31 Jan 2005 10:24:05 -0000	1.24
***************
*** 106,111 ****
      $img2_name = $img1_name;
  
!     while (file_exists($pathtofile2)) {
!         $pos = strpos($tmppathtofile, '.'.trim($imgtype));
          $pathtofile_start = substr($tmppathtofile, 0, $pos);
          $pathtofile2 = $pathtofile_start.'_'.zeroise($i++, 2).'.'.trim($imgtype);
--- 106,111 ----
      $img2_name = $img1_name;
  
!     while ( file_exists($pathtofile2) ) {
!         $pos = strpos( strtolower($tmppathtofile), '.' . trim($imgtype) );
          $pathtofile_start = substr($tmppathtofile, 0, $pos);
          $pathtofile2 = $pathtofile_start.'_'.zeroise($i++, 2).'.'.trim($imgtype);



More information about the cvs mailing list