This commit solves the issue that, if the uploaded file does not have an extension, there will be a "." at the end of the generated name. This would not be ideal as the dot is often omitted when links are automatically hyperlinked elsewhere.
}
switch($arg){
case 'random':
- return $name.'.'.$in;
+ if($in){
+ return $name.'.'.$in;
+ }
+ return $name;
break;
case 'custom_original':
return $name.'_'.$in;