From ca620b60fb2327fca72d61b4377d44ca26ae422a Mon Sep 17 00:00:00 2001 From: nuxsmin Date: Mon, 24 Sep 2018 18:05:59 +0200 Subject: [PATCH] * [FIX] Fixed issue when creating public links. Closes #1012. Thanks to @vmario899 for the feedback. Signed-off-by: nuxsmin --- lib/SP/Bootstrap.php | 2 +- lib/SP/Services/Install/Installer.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/SP/Bootstrap.php b/lib/SP/Bootstrap.php index 05ddc6e4..5ea56ce1 100644 --- a/lib/SP/Bootstrap.php +++ b/lib/SP/Bootstrap.php @@ -191,7 +191,7 @@ final class Bootstrap /** @var \Klein\Request $request */ $route = Filter::getString($request->param('r', 'index/index')); - if (!preg_match_all('#(?P[a-zA-Z]+)(?:/(?P[a-zA-Z]+))?(?P/[a-zA-Z\d\.]+)?#', $route, $matches)) { + if (!preg_match_all('#(?P[a-zA-Z]+)(?:/(?P[a-zA-Z]+))?(?P(/[a-zA-Z\d\.]+)+)?#', $route, $matches)) { throw new RuntimeException($oops); } diff --git a/lib/SP/Services/Install/Installer.php b/lib/SP/Services/Install/Installer.php index 839d48e8..419c36cf 100644 --- a/lib/SP/Services/Install/Installer.php +++ b/lib/SP/Services/Install/Installer.php @@ -57,7 +57,7 @@ final class Installer extends Service */ const VERSION = [3, 0, 0]; const VERSION_TEXT = '3.0-beta'; - const BUILD = 18092401; + const BUILD = 18092402; /** * @var DatabaseSetupInterface