Merge pull request #697 from myfreescalewebpage/master

Fix fatal error with long tags
This commit is contained in:
Klaus Silveira
2017-08-22 10:11:37 -04:00
committed by GitHub

View File

@@ -39,8 +39,10 @@ class Routing
$slashPosition === 40)) {
// We may have a commit hash as our commitish.
$hash = substr($commitishPath, 0, 40);
if ($repository->hasCommit($hash)) {
$commitish = $hash;
if (preg_match('/[^a-zA-Z0-9]/i', $hash) === 0) {
if ($repository->hasCommit($hash)) {
$commitish = $hash;
}
}
}