Changeset 52760
- Timestamp:
- 02/17/2022 05:38:23 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/admin/includesFile.php
r52734 r52760 103 103 104 104 /** 105 * @ticket #55109 105 * Data provider for test_download_url_should_respect_filename_from_content_disposition_header. 106 * 107 * @return array 108 */ 109 public function data_download_url_should_respect_filename_from_content_disposition_header() { 110 return array( 111 'valid parameters' => array( 'filter_content_disposition_header_with_filename' ), 112 'path traversal' => array( 'filter_content_disposition_header_with_filename_with_path_traversal' ), 113 'no quotes' => array( 'filter_content_disposition_header_with_filename_without_quotes' ), 114 ); 115 } 116 117 /** 118 * @ticket 55109 106 119 * @dataProvider data_save_to_temp_directory_when_getting_filename_from_content_disposition_header 107 120 * … … 118 131 119 132 remove_filter( 'pre_http_request', array( $this, $filter ) ); 120 }121 122 /**123 * Data provider for test_download_url_should_respect_filename_from_content_disposition_header.124 *125 * @return array126 */127 public function data_download_url_should_respect_filename_from_content_disposition_header() {128 return array(129 'valid parameters' => array( 'filter_content_disposition_header_with_filename' ),130 'path traversal' => array( 'filter_content_disposition_header_with_filename_with_path_traversal' ),131 'no quotes' => array( 'filter_content_disposition_header_with_filename_without_quotes' ),132 );133 133 } 134 134
Note: See TracChangeset
for help on using the changeset viewer.