From: Glenn H. <thr...@us...> - 2004-09-28 00:56:30
|
Update of /cvsroot/mantisbt/mantisbt In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26184 Modified Files: proj_doc_add.php Log Message: fix for 0004615: Issues can have two attachments with the same display name added check for filename uniqueness at bug and project level Index: proj_doc_add.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/proj_doc_add.php,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- proj_doc_add.php 31 Aug 2004 13:11:50 -0000 1.43 +++ proj_doc_add.php 28 Sep 2004 00:56:13 -0000 1.44 @@ -72,7 +72,7 @@ case FTP: case DISK: file_ensure_valid_upload_path( $t_file_path ); - if ( !file_exists( $t_disk_file_name ) ) { + if ( project_file_is_name_unique( $v_name ) ) { if ( FTP == $t_method ) { $conn_id = file_ftp_connect(); file_ftp_put ( $conn_id, $t_disk_file_name, $v_tmp_name ); |