Fix detection of git refs to be more strict

main
Jordi Boggiano 4 years ago
parent d8fa746433
commit 79813b2f77
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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);
} }
/** /**

Loading…
Cancel
Save