leave http/https in folder names so we know which sheme to use

This commit is contained in:
Jonny Barnes 2016-09-16 16:33:05 +01:00
parent b340d5a076
commit 7abf8383de
2 changed files with 2 additions and 2 deletions

View file

@ -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';
}

View file

@ -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';
}