aboutsummaryrefslogtreecommitdiffstats
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2019-02-19 00:05:25 +0000
committerJunio C Hamano <gitster@pobox.com>2019-04-01 11:57:39 +0900
commitbcbb44ba053988fcc0d3ddb876c007898f345992 (patch)
treebe83f815e5fdba41bbf1d93093f804b3147b89bf /gitweb/gitweb.perl
parentread-cache: read data in a hash-independent way (diff)
downloadgit-bcbb44ba053988fcc0d3ddb876c007898f345992.tar.gz
git-bcbb44ba053988fcc0d3ddb876c007898f345992.zip
Git.pm: make hash size independent
The cat_blob function was matching on exactly 40 hex characters. This won't work with SHA-256, which uses 64-character hex object IDs. While it should be fine to simply match any number of hex characters since the output is space delimited, be extra safe by matching either exactly 40 or exactly 64 hex characters. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
0 files changed, 0 insertions, 0 deletions