mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 06:03:28 +00:00
Fix reversed version comparison
This commit is contained in:
@@ -235,7 +235,7 @@ for(my $i=0; $i<@sp1 || $i<@sp2; $i++) {
|
||||
# Numeric compared to non-numeric - numeric is always higher
|
||||
$comp = 1;
|
||||
}
|
||||
elsif ($v1 =~ /^\d+$/ && $v2 !~ /^\d+$/) {
|
||||
elsif ($v1 !~ /^\d+$/ && $v2 =~ /^\d+$/) {
|
||||
# Non-numeric compared to numeric - numeric is always higher
|
||||
$comp = -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user