mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11150] Better version normalization
PHPBB3-11150
This commit is contained in:
committed by
Tristan Darricau
parent
ac129f34d3
commit
540bac3ba4
@@ -191,7 +191,15 @@ class manager implements manager_interface
|
||||
{
|
||||
if (is_numeric($package))
|
||||
{
|
||||
$normalized_packages[$version] = '*';
|
||||
if (strpos($version, ':') !== false)
|
||||
{
|
||||
$parts = explode(':', $version);
|
||||
$normalized_packages[$parts[0]] = $parts[1];
|
||||
}
|
||||
else
|
||||
{
|
||||
$normalized_packages[$version] = '*';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user