Changeset 11874
- Timestamp:
- 03/02/2018 02:06:51 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-attachments.php
r11858 r11874 266 266 267 267 // Make sure the file path is safe. 268 if ( 0 !== validate_file( $r['image'] ) ) {268 if ( 1 === validate_file( $r['image'] ) ) { 269 269 return false; 270 270 } … … 448 448 $type_dir = trailingslashit( $bp_attachments_uploads_dir['basedir'] ) . $type_subdir; 449 449 450 if ( 0 !== validate_file( $type_dir ) || ! is_dir( $type_dir ) ) {450 if ( 1 === validate_file( $type_dir ) || ! is_dir( $type_dir ) ) { 451 451 return $attachment_data; 452 452 } … … 1304 1304 $cover_dir = trailingslashit( $bp_attachments_uploads_dir['basedir'] ) . $cover_subdir; 1305 1305 1306 if ( 0 !== validate_file( $cover_dir ) || ! is_dir( $cover_dir ) ) {1306 if ( 1 === validate_file( $cover_dir ) || ! is_dir( $cover_dir ) ) { 1307 1307 // Upload error response. 1308 1308 bp_attachments_json_response( false, $is_html4, array(
Note: See TracChangeset
for help on using the changeset viewer.