Fix nodelist crc's that have 8 chars
This commit is contained in:
@@ -188,8 +188,8 @@ class Tic extends FTNBase
|
||||
throw new \Exception(sprintf('TIC file size [%d] doesnt match file [%s] (%d)',$fo->size,$fo->fullname,$y));
|
||||
|
||||
// Validate CRC
|
||||
if (sprintf('%x',$fo->crc) !== ($y=hash_file('crc32b',$x)))
|
||||
throw new \Exception(sprintf('TIC file CRC [%x] doesnt match file [%s] (%s)',$fo->crc,$fo->fullname,$y));
|
||||
if (sprintf('%08x',$fo->crc) !== ($y=hash_file('crc32b',$x)))
|
||||
throw new \Exception(sprintf('TIC file CRC [%08x] doesnt match file [%s] (%s)',$fo->crc,$fo->fullname,$y));
|
||||
|
||||
// Validate Password
|
||||
if ($this->pw !== ($y=$this->from->session('ticpass')))
|
||||
|
Reference in New Issue
Block a user