mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10851] Add unit and functional tests for checking attachments
These tests will make sure that fileuploads now work as expected regarding the check for disallowed content. PHPBB3-10851
This commit is contained in:
@@ -143,6 +143,8 @@ class phpbb_filespec_test extends phpbb_test_case
|
||||
$disallowed_content = explode('|', $this->config['mime_triggers']);
|
||||
$filespec = $this->get_filespec(array('tmp_name' => $this->path . $filename));
|
||||
$this->assertEquals($expected, $filespec->check_content($disallowed_content));
|
||||
// All files should pass if $disallowed_content is empty
|
||||
$this->assertEquals(true, $filespec->check_content(array()));
|
||||
}
|
||||
|
||||
public function clean_filename_variables()
|
||||
|
Reference in New Issue
Block a user