From 8a726316bbdf36b653806ecfbb76807241d50f48 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 7 Nov 2019 15:19:27 +0100 Subject: [PATCH] Fix displaying version number for rcX versions --- bin/installto.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/installto.sh b/bin/installto.sh index c1c2f6815..46879f668 100755 --- a/bin/installto.sh +++ b/bin/installto.sh @@ -34,7 +34,7 @@ if (empty($target_dir) || !is_dir(realpath($target_dir))) // read version from iniset.php $iniset = @file_get_contents($target_dir . '/program/include/iniset.php'); -if (!preg_match('/define\(.RCMAIL_VERSION.,\s*.([0-9.]+[a-z-]*)/', $iniset, $m)) +if (!preg_match('/define\(.RCMAIL_VERSION.,\s*.([0-9.]+[a-z0-9-]*)/', $iniset, $m)) rcube::raise_error("No valid Roundcube installation found at $target_dir", false, true); $oldversion = $m[1];