leave http/https in folder names so we know which sheme to use
This commit is contained in:
parent
b340d5a076
commit
7abf8383de
2 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue