1
0
Fork 0

Fix detection of git refs to be more strict

pull/9098/head
Jordi Boggiano 2020-07-30 14:24:04 +02:00
parent d8fa746433
commit 79813b2f77
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ abstract class VcsDriver implements VcsDriverInterface
*/ */
protected function shouldCache($identifier) protected function shouldCache($identifier)
{ {
return $this->cache && preg_match('{[a-f0-9]{40}}i', $identifier); return $this->cache && preg_match('{^[a-f0-9]{40}$}iD', $identifier);
} }
/** /**