We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51bf721 commit a1c2857Copy full SHA for a1c2857
src/Commands/pm/SecurityUpdateCommands.php
@@ -78,7 +78,19 @@ public function security()
78
'min-version' => $min_version,
79
];
80
}
81
- } else {
+ }
82
+ // Compare exact versions that are insecure.
83
+ elseif (preg_match('/^[[:digit:]](?![-*><=~ ])/', $conflict_constraint)) {
84
+ $exact_version = $conflict_constraint;
85
+ if (Comparator::equalTo($package['version'], $exact_version)) {
86
+ $this->securityUpdates[$name] = [
87
+ 'name' => $name,
88
+ 'version' => $package['version'],
89
+ 'min-version' => $exact_version,
90
+ ];
91
92
93
+ else {
94
$this->logger()->warning("Could not parse drupal-security-advisories conflicting version constraint $conflict_constraint for package $name.");
95
96
0 commit comments