summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-07-07 03:56:57 +0000
committerColin Smith <colin@pfsense.org>2005-07-07 03:56:57 +0000
commit40326f363c78cd4fe93913e22468245ba33f440b (patch)
tree15e6517ad8478da4a8aa137f8d97fc9cc8e0344d /usr/local
parente1c0c35af45f0c147627b29d5070177a9ae60474 (diff)
downloadpfsense-40326f363c78cd4fe93913e22468245ba33f440b.zip
pfsense-40326f363c78cd4fe93913e22468245ba33f440b.tar.gz
Use strcmp() instead of numeric string comparison.
suggested-by: strgout
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/pkg_mgr_installed.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/pkg_mgr_installed.php b/usr/local/www/pkg_mgr_installed.php
index 6a4d16b..26e70af 100755
--- a/usr/local/www/pkg_mgr_installed.php
+++ b/usr/local/www/pkg_mgr_installed.php
@@ -89,13 +89,13 @@ include("head.inc");
?><td class="listlr"><?php
echo "Current: Unknown.<br>Installed: " . $pkg['version'];
?></td><?php
- } elseif($pkg['version'] > $latest_package) {
+ } elseif(strcmp($pkg['version'], $latest_package) > 0) {
/* we're running a newer version of the package */
?><td class="listbggrey"><font color="#FFFFFFF"><?php
echo "Current: {$latest_version}";
echo "<br>Installed: {$pkg['version']}";
?></td><?php
- } elseif($pkg['version'] < $latest_package) {
+ } elseif(strcmp($pkg['version'], $latest_package) < 0) {
/* our package is out of date */
?><td class="listbg"><font color="#FFFFFFF"><?php
echo "Current: {$latest_version}";
OpenPOWER on IntegriCloud