mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Merge pull request #697 from myfreescalewebpage/master
Fix fatal error with long tags
This commit is contained in:
@@ -39,8 +39,10 @@ class Routing
|
|||||||
$slashPosition === 40)) {
|
$slashPosition === 40)) {
|
||||||
// We may have a commit hash as our commitish.
|
// We may have a commit hash as our commitish.
|
||||||
$hash = substr($commitishPath, 0, 40);
|
$hash = substr($commitishPath, 0, 40);
|
||||||
if ($repository->hasCommit($hash)) {
|
if (preg_match('/[^a-zA-Z0-9]/i', $hash) === 0) {
|
||||||
$commitish = $hash;
|
if ($repository->hasCommit($hash)) {
|
||||||
|
$commitish = $hash;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user