Changeset 1650
- Timestamp:
- 06/05/2015 07:06:25 PM (11 years ago)
- Location:
- sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2
- Files:
-
- 2 edited
-
anon-upload-template.php (modified) (1 diff)
-
plugins/wordpresstv-anon-upload/anon-upload.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.tv/public_html/wp-content/themes/wptv2/anon-upload-template.php
r1044 r1650 386 386 } 387 387 388 // Changes to this list must be synced with WPTV_Anon_Upload::save() 388 389 if ( ! file.val() || !/\.(avi|mov|qt|mpeg|mpg|mpe|mp4|m4v|asf|asx|wax|wmv|wmx|ogv|3gp|3g2)$/.test( file.val() ) ) { 389 390 invalid(file, e); -
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)