$data['name'] = format_oneline(_REQUEST_cut('name'));
$data['caption'] = format_oneline(_REQUEST_cut('caption'));
- $data['sizes'] = format_unix(_REQUEST_cut('sizes'));
+ $data['sizes'] = str_replace(' ', '', strtolower(format_unix(_REQUEST_cut('sizes'))));
if($_FILES['image'] && $_FILES['image']['error'] == 0) {
$data['image'] = convert_uploaded_image('image', $GLOBALS['upload_directory'] . $GLOBALS['image_file_name'], $GLOBALS['image_max_width'], $GLOBALS['image_max_height'], $GLOBALS['image_thumb_max_width'], $GLOBALS['image_thumb_max_height']);