mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
+ can be used as a version part separator https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3598459&group_id=17457
This commit is contained in:
@@ -201,8 +201,8 @@ return undef;
|
||||
# Returns -1 if ver1 is older than ver2, 1 if newer, 0 if same
|
||||
sub compare_versions
|
||||
{
|
||||
local @sp1 = split(/[\.\-]/, $_[0]);
|
||||
local @sp2 = split(/[\.\-]/, $_[1]);
|
||||
local @sp1 = split(/[\.\-\+]/, $_[0]);
|
||||
local @sp2 = split(/[\.\-\+]/, $_[1]);
|
||||
for(my $i=0; $i<@sp1 || $i<@sp2; $i++) {
|
||||
local $v1 = $sp1[$i];
|
||||
local $v2 = $sp2[$i];
|
||||
|
||||
Reference in New Issue
Block a user