|
|
@ -73,18 +73,14 @@ $basename = basename( |
|
|
|
$argv[2] |
|
|
|
$argv[2] |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Check filename not longer of protocol |
|
|
|
// Check filename length match protocol |
|
|
|
if (mb_strlen($basename) > 255) |
|
|
|
if (mb_strlen($basename) > 255) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// Get file hash sum |
|
|
|
|
|
|
|
$basename = md5_file( |
|
|
|
|
|
|
|
$argv[2] |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Dump event |
|
|
|
|
|
|
|
print( |
|
|
|
print( |
|
|
|
'Filename to long, used md5_file as key...' . PHP_EOL |
|
|
|
'filename too long' . PHP_EOL |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exit; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Split content to smaller parts (according to the protocol limits) |
|
|
|
// Split content to smaller parts (according to the protocol limits) |
|
|
|