MantisBT: master b7741aa5

Author Committer Branch Timestamp Parent
raspopov dregad master 2026-02-03 10:11 master 7a512868
Affected Issues  0036861: Non-optimal verification of uploaded files
Changeset

Optimize the verification of uploaded files

  • Verification code is collected in one place inside
    the file_ensure_uploaded() function.
  • Added checks to the IssueFileAddCommand and
    IssueNoteAddCommand commands.
  • Extended checking for web server upload errors.
  • Tests for the file_ensure_uploaded() function have been added.
  • Add file name to exception messages.

Fixes 0036861, PR https://github.com/mantisbt/mantisbt/pull/2176

mod - core/commands/IssueAddCommand.php Diff File
mod - core/commands/IssueFileAddCommand.php Diff File
mod - core/commands/IssueNoteAddCommand.php Diff File
mod - core/file_api.php Diff File
mod - proj_doc_update.php Diff File
add - tests/Mantis/AntispamApiTest.php Diff File
add - tests/Mantis/FileApiTest.php Diff File