From 78b22042f0237b30b8bb3d711e9be4cf0b4f5e6b Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Wed, 21 Sep 2016 15:14:58 +0100 Subject: [PATCH] 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); }