diff options
| author | spiderr <spiderr@bitweaver.org> | 2025-05-14 21:31:42 -0400 |
|---|---|---|
| committer | spiderr <spiderr@bitweaver.org> | 2025-05-14 21:31:42 -0400 |
| commit | d15175a1786794d12b45f91e895bdbf2f7ced576 (patch) | |
| tree | ff053dda116efc3f43284378bd29b193b9830c12 /plugins | |
| parent | 887ba9e1d94a75fc2ff07c7a97ab2d2ccc15d212 (diff) | |
| download | liberty-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.php | 2 |
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'], |
