Skip to content

Commit

Permalink
Fixed use of HTTP_POST_FILES. removed from core_API.php added to bug_…
Browse files Browse the repository at this point in the history
…file_add and proj_doc_add

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@978 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
Kenzaburo Ito committed May 19, 2002
1 parent acdbc7a commit e78e284
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bug_file_add.php
Expand Up @@ -17,6 +17,8 @@
$result = 0;
$good_upload = 0;
$disallowed = 0;
extract( $HTTP_POST_FILES['f_file'], EXTR_PREFIX_ALL, "f" );

if ( !file_type_check( $f_file_name ) ) {
$disallowed = 1;
} else if ( is_uploaded_file( $f_file ) ) {
Expand Down
2 changes: 2 additions & 0 deletions proj_doc_add.php
Expand Up @@ -13,6 +13,8 @@
$result = 0;
$good_upload = 0;
$disallowed = 0;
extract( $HTTP_POST_FILES['f_file'], EXTR_PREFIX_ALL, "f" );

if ( !file_type_check( $f_file_name ) ) {
$disallowed = 1;
} else if ( is_uploaded_file( $f_file ) ) {
Expand Down

0 comments on commit e78e284

Please sign in to comment.