From 78b22042f0237b30b8bb3d711e9be4cf0b4f5e6b Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 21 Sep 2016 15:14:58 +0100 Subject: [PATCH 1/2] Fix: remove index.html from generated url --- app/Console/Commands/ParseCachedWebMentions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ParseCachedWebMentions.php b/app/Console/Commands/ParseCachedWebMentions.php index 03e3d277..caf244cd 100644 --- a/app/Console/Commands/ParseCachedWebMentions.php +++ b/app/Console/Commands/ParseCachedWebMentions.php @@ -65,7 +65,7 @@ class ParseCachedWebMentions extends Command { $dir = mb_substr($filepath, mb_strlen(storage_path() . '/HTML/')); $url = str_replace(['http/', 'https/'], ['http://', 'https://'], $dir); - if (mb_substr($url, -1) == 'index.html') { + if (mb_substr($url, -10) == 'index.html') { $url = mb_substr($url, 0, mb_strlen($url) - 10); } From 4d623d0d7b56632d4cc1cfbb22e954ec9637a348 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 21 Sep 2016 15:16:34 +0100 Subject: [PATCH 2/2] Bump version, add fix --- changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelog.md b/changelog.md index a029bf1e..1557a21e 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,8 @@ # Changelog +## Version 0.0.11.8 (2016-09-21) + - Fix: remove index.html from generated url + ## Version 0.0.11.7 (2016-09-21) - Fix: need to create necessary directories first