Skip to content
Permalink
Browse files

Quick Fix

  • Loading branch information...
sebastienheraud committed May 16, 2019
1 parent a20fce0 commit 61ca24e64dd6e2c5ad8f226832c5c08e45c25f70
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/cck_field/upload_file/upload_file.php
@@ -615,7 +615,7 @@ public function onCCK_FieldPrepareStore( &$field, $value = '', &$config = array(
}
$maxsize = floatval( $options2['max_size'] ) * $unit_prod;
$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 ( $userfile && $userfile['name'] && $userfile['tmp_name'] ) {
$item_custom_name = $userfile['name'];

0 comments on commit 61ca24e

Please sign in to comment.
You can’t perform that action at this time.