summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/mime.default.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mime.default.php b/plugins/mime.default.php
index c99336d..ffb0be6 100644
--- a/plugins/mime.default.php
+++ b/plugins/mime.default.php
@@ -202,7 +202,7 @@ if( !function_exists( 'mime_default_store' )) {
if( $storagePath = liberty_process_upload( $pStoreRow['upload'], empty( $pStoreRow['upload']['copy_file'] ))) {
// add row to liberty_files
$storeHash = array(
- "file_name" => $pStoreRow['upload']['name'],
+ "file_name" => substr( $pStoreRow['upload']['name'], 0, 250 ),
"file_id" => $gBitSystem->mDb->GenID( 'liberty_files_id_seq' ),
"mime_type" => $pStoreRow['upload']['type'],
"file_size" => (int)$pStoreRow['upload']['size'],