summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorspiderr <spiderr@bitweaver.org>2025-05-14 21:31:42 -0400
committerspiderr <spiderr@bitweaver.org>2025-05-14 21:31:42 -0400
commitd15175a1786794d12b45f91e895bdbf2f7ced576 (patch)
treeff053dda116efc3f43284378bd29b193b9830c12 /plugins
parent887ba9e1d94a75fc2ff07c7a97ab2d2ccc15d212 (diff)
downloadliberty-d15175a1786794d12b45f91e895bdbf2f7ced576.tar.gz
liberty-d15175a1786794d12b45f91e895bdbf2f7ced576.tar.bz2
liberty-d15175a1786794d12b45f91e895bdbf2f7ced576.zip
limit file_name to 250 chars
Diffstat (limited to 'plugins')
-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'],