From e217faa4f61196be6625b87392b3b6768c40e3d9 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 28 Aug 2015 19:59:45 +0545 Subject: Redmine #4925 Fix version comparison for RELENG_2_2 Backport of https://github.com/pfsense/pfsense/pull/1826 --- etc/inc/pfsense-utils.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index b9e2cc9..e363b39 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -2126,8 +2126,8 @@ function version_compare_string($a, $b) { return 0; } function version_compare_numeric($a, $b) { - $a_arr = explode('.', rtrim($a, '.0')); - $b_arr = explode('.', rtrim($b, '.0')); + $a_arr = explode('.', rtrim($a, '.')); + $b_arr = explode('.', rtrim($b, '.')); foreach ($a_arr as $n => $val) { if (array_key_exists($n, $b_arr)) { -- cgit v1.1