Merge pull request #1120 from Hawkheart/patch-1

extend URL validation
This commit is contained in:
daniel 2019-04-04 12:17:28 -06:00 committed by GitHub
commit 1347bb618d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,6 +186,11 @@ class RemoteFollowImportRecent implements ShouldQueue
Log::info('Invalid media, skipping. '.$mime); Log::info('Invalid media, skipping. '.$mime);
continue; continue;
} }
if (Helpers::validateUrl($url) == false) {
Log::info('Skipping invalid attachment URL: ' . $url);
continue;
}
$count++; $count++;
if ($count === 1) { if ($count === 1) {