Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11226

filespec::move_file() from functions_upload.php does not error correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-b4
    • 3.0.11, 3.1.0-dev
    • Other
    • None

      If $overwrite is false and the the destination file exists, no error message is given, file_moved is set to true and the return value is true.
      All 3 of these results are wrong.
      It should add an error message to ->error, file_moved should not be set to true and return should be false.

            nickvergessen Joas Schilling
            nickvergessen Joas Schilling
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: