|
@@ -468,8 +468,8 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- // TODO throw SecurityException and abort once we are sure this can not happen accidentally
|
|
|
$this->io->write('<warning>The contents of '.$filename.' do not match its signature, this is most likely due to a temporary glitch but could indicate a man-in-the-middle attack. Try running composer again and please report it if it still persists.</warning>');
|
|
|
+ throw new RepositorySecurityException('The contents of '.$filename.' do not match its signature');
|
|
|
}
|
|
|
$data = JsonFile::parseJson($json, $filename);
|
|
|
$this->cache->write($cacheKey, $json);
|