truncate filenames on insert
This commit is contained in:
parent
112130b8ad
commit
80bdc565dd
@ -324,7 +324,7 @@ class ImageIO extends Extension {
|
|||||||
:hash, :ext, :width, :height, now(), :source
|
:hash, :ext, :width, :height, now(), :source
|
||||||
)",
|
)",
|
||||||
array(
|
array(
|
||||||
"owner_id"=>$user->id, "owner_ip"=>$_SERVER['REMOTE_ADDR'], "filename"=>$image->filename, "filesize"=>$image->filesize,
|
"owner_id"=>$user->id, "owner_ip"=>$_SERVER['REMOTE_ADDR'], "filename"=>substr($image->filename, 0, 60), "filesize"=>$image->filesize,
|
||||||
"hash"=>$image->hash, "ext"=>$image->ext, "width"=>$image->width, "height"=>$image->height, "source"=>$image->source
|
"hash"=>$image->hash, "ext"=>$image->ext, "width"=>$image->width, "height"=>$image->height, "source"=>$image->source
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user