From 9433f4e78fdc847554d900ea440e642685d8dd75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 7 Apr 2011 14:35:11 +0200 Subject: [PATCH] Fix check for latest version to work with versions like -rc1-dev --- setup/lib/index.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/lib/index.lib.php b/setup/lib/index.lib.php index a90bc3d11..5d42910a2 100644 --- a/setup/lib/index.lib.php +++ b/setup/lib/index.lib.php @@ -176,7 +176,7 @@ function PMA_version_check() function version_to_int($version) { $matches = array(); - if (!preg_match('/^(\d+)\.(\d+)\.(\d+)((\.|-(pl|rc|dev|beta|alpha))(\d+)?)?$/', $version, $matches)) { + if (!preg_match('/^(\d+)\.(\d+)\.(\d+)((\.|-(pl|rc|dev|beta|alpha))(\d+)?(-dev)?)?$/', $version, $matches)) { return false; } if (!empty($matches[6])) {