Skip to content

Commit

Permalink
Quick Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienheraud committed May 16, 2019
1 parent a20fce0 commit 61ca24e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/cck_field/upload_file/upload_file.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -615,7 +615,7 @@ public function onCCK_FieldPrepareStore( &$field, $value = '', &$config = array(
} }
$maxsize = floatval( $options2['max_size'] ) * $unit_prod; $maxsize = floatval( $options2['max_size'] ) * $unit_prod;
$filename = JFile::stripExt( $userfile['name'] ); $filename = JFile::stripExt( $userfile['name'] );
$userfile['name'] = str_replace( $filename, JCckDev::toSafeSTRING( $filename, JCck::getConfig_Param( 'media_characters', '-' ) ), $userfile['name'] ); $userfile['name'] = str_replace( $filename, JCckDev::toSafeSTRING( $filename, JCck::getConfig_Param( 'media_characters', '-' ), JCck::getConfig_Param( 'media_case', 0 ) ), $userfile['name'] );
if ( ! $maxsize || ( $maxsize && $userfile['size'] < $maxsize ) ) { if ( ! $maxsize || ( $maxsize && $userfile['size'] < $maxsize ) ) {
if ( $userfile && $userfile['name'] && $userfile['tmp_name'] ) { if ( $userfile && $userfile['name'] && $userfile['tmp_name'] ) {
$item_custom_name = $userfile['name']; $item_custom_name = $userfile['name'];
Expand Down

0 comments on commit 61ca24e

Please sign in to comment.