mirror of
https://github.com/clitor-is-protocol/kevacoin-cli.git
synced 2025-02-07 04:14:21 +00:00
update filename length correction
This commit is contained in:
parent
8eafa0c2d0
commit
5a1070af26
12
src/put.php
12
src/put.php
@ -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
|
print(
|
||||||
$basename = md5_file(
|
'filename too long' . PHP_EOL
|
||||||
$argv[2]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
// Dump event
|
exit;
|
||||||
print(
|
|
||||||
'Filename to long, used md5_file as key...' . PHP_EOL
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Split content to smaller parts (according to the protocol limits)
|
// Split content to smaller parts (according to the protocol limits)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user