From 7abf8383de0e72f4951ee7785b2e81afee2f7631 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Fri, 16 Sep 2016 16:33:05 +0100 Subject: [PATCH] leave http/https in folder names so we know which sheme to use --- app/Jobs/DownloadWebMention.php | 2 +- app/Jobs/ProcessWebMention.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Jobs/DownloadWebMention.php b/app/Jobs/DownloadWebMention.php index ac7779df..0b73384f 100644 --- a/app/Jobs/DownloadWebMention.php +++ b/app/Jobs/DownloadWebMention.php @@ -55,7 +55,7 @@ class DownloadWebMention implements ShouldQueue */ private function createFilenameFromURL($url) { - $url = str_replace(['https://', 'http://'], ['', ''], $url); + $url = str_replace(['https://', 'http://'], ['https/', 'http/'], $url); if (substr($url, -1) == '/') { $url = $url . 'index.html'; } diff --git a/app/Jobs/ProcessWebMention.php b/app/Jobs/ProcessWebMention.php index fadd8399..24c03d53 100644 --- a/app/Jobs/ProcessWebMention.php +++ b/app/Jobs/ProcessWebMention.php @@ -139,7 +139,7 @@ class ProcessWebMention extends Job implements ShouldQueue */ private function createFilenameFromURL($url) { - $url = str_replace(['https://', 'http://'], ['', ''], $url); + $url = str_replace(['https://', 'http://'], ['https/', 'http/'], $url); if (substr($url, -1) == '/') { $url = $url . 'index.html'; }