Skip to content

Commit

Permalink
Fix #10235: mc_issue_attachment_add corrupts attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
giallu committed Mar 25, 2009
1 parent 5a64edb commit 77a58dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/soap/mc_issue_attachment_api.php
Expand Up @@ -46,7 +46,7 @@ function mc_issue_attachment_add( $p_username, $p_password, $p_issue_id, $p_name
if( !access_has_bug_level( config_get( 'upload_bug_file_threshold' ), $p_issue_id, $t_user_id ) ) {
return new soap_fault( 'Client', '', 'Access Denied' );
}
return mci_file_add( $p_issue_id, $p_name, $p_content, $p_file_type, 'bug' );
return mci_file_add( $p_issue_id, $p_name, base64_decode( $p_content ), $p_file_type, 'bug' );
}

/**
Expand Down

0 comments on commit 77a58dd

Please sign in to comment.