Changeset 1650 for sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
- Timestamp:
- 06/05/2015 07:06:25 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/plugins/wordpresstv-anon-upload/anon-upload.php
r1044 r1650 186 186 187 187 if ( ! empty( $name_parts['extension'] ) ) { 188 if ( ! in_array( strtolower( $name_parts['extension'] ), array( 189 'avi', 190 'mov', 191 'qt', 192 'mpeg', 193 'mpg', 194 'mpe', 195 'mp4', 196 'm4v', 197 'asf', 198 'asx', 199 'wax', 200 'wmv', 201 'wmx', 202 'ogv', 203 '3gp', 204 '3g2', 205 ), true ) 188 // Changes to this must be synced with the anonymous JavaScript function in anon-upload-template.php 189 $valid_extensions = array( 190 'avi', 'mov', 'qt', 'mpeg', 'mpg', 'mpe', 'mp4', 'm4v', 'asf', 'asx', 'wax', 'wmv', 'wmx', 'ogv', 191 '3gp', '3g2', 192 ); 193 194 if ( ! in_array( strtolower( $name_parts['extension'] ), $valid_extensions, true ) 206 195 ) { 207 196 return $this->error( 2 );
Note: See TracChangeset
for help on using the changeset viewer.