From 1453ebe8ca9c09fdec7db0569a317660b7ff88d7 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 10 Feb 2022 21:29:28 +0100 Subject: [PATCH 1/3] Updated to shlink-installer 7.0.1 --- CHANGELOG.md | 17 +++++++++++++++++ composer.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 859d9e1a..1ecad5d5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com), and this project adheres to [Semantic Versioning](https://semver.org). +## [3.0.2] - 2022-02-10 +### Added +* *Nothing* + +### Changed +* *Nothing* + +### Deprecated +* *Nothing* + +### Removed +* *Nothing* + +### Fixed +* [#1373](https://github.com/shlinkio/shlink/issues/1373) Fixed incorrect config import when updating from Shlink 2.x using SQLite. + + ## [3.0.1] - 2022-02-04 ### Added * *Nothing* diff --git a/composer.json b/composer.json index a7fc457c..55dbb7ed 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "shlinkio/shlink-config": "^1.6", "shlinkio/shlink-event-dispatcher": "^2.3", "shlinkio/shlink-importer": "^2.5", - "shlinkio/shlink-installer": "^7.0", + "shlinkio/shlink-installer": "^7.0.1", "shlinkio/shlink-ip-geolocation": "^2.2", "symfony/console": "^6.0", "symfony/filesystem": "^6.0", From 5267c4eee635256bad2bb4a7d4a23bd3224cbe50 Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Thu, 10 Feb 2022 21:31:30 +0100 Subject: [PATCH 2/3] Updated changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ecad5d5..17908191 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this ### Fixed * [#1373](https://github.com/shlinkio/shlink/issues/1373) Fixed incorrect config import when updating from Shlink 2.x using SQLite. +* [#1369](https://github.com/shlinkio/shlink/issues/1369) Fixed slow regexps in `.htaccess` file. ## [3.0.1] - 2022-02-04 From 57eb29c3c82ad4067de1f0c03c1ff163e1355e19 Mon Sep 17 00:00:00 2001 From: Roy-Orbison Date: Mon, 7 Feb 2022 16:00:57 +1030 Subject: [PATCH 3/3] Optimise RewriteRules/Conds From upstream changes on Mezzio Skeleton. Closes #1369. --- public/.htaccess | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index 32a4fd27..affe2ed1 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -4,7 +4,7 @@ RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d -RewriteRule ^.*$ - [NC,L] +RewriteRule ^ - [NC,L] # The following rewrites all other queries to index.php. The # condition ensures that if you are using Apache aliases to do @@ -12,6 +12,6 @@ RewriteRule ^.*$ - [NC,L] # allow proper resolution of the index.php file; it will work # in non-aliased environments as well, providing a safe, one-size # fits all solution. -RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$ -RewriteRule ^(.*) - [E=BASE:%1] -RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L] +RewriteCond $0::%{REQUEST_URI} ^([^:]*+(?::[^:]*+)*?)::(/.+?)\1$ +RewriteRule .+ - [E=BASE:%2] +RewriteRule .* %{ENV:BASE}index.php [NC,L]