| private function findPackInfo( string $sha ): array { | ||
| - $result = [ 'offset' => 0, 'file' => '' ]; | ||
| - $binarySha = hex2bin( $sha ); | ||
| + $result = [ 'offset' => 0, 'file' => '' ]; | ||
| - if( strlen( $sha ) === 40 && $binarySha !== false ) { | ||
| + if( strlen( $sha ) === 40 && ctype_xdigit( $sha ) ) { | ||
| + $binarySha = hex2bin( $sha ); | ||
| if( $this->lastPack !== '' ) { | ||
| $offset = $this->findInIdx( $this->lastPack, $binarySha ); |
| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-18 21:54:39 GMT-0800 |
| Commit | a2de074d5b1e3b894d1490bae698141304520910 |
| Parent | 14016ba |
| Delta | 3 lines added, 3 lines removed |