1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 00:05:29 +00:00

extend URL validation

this code is currently dead, but improving it should it become live
This commit is contained in:
Hawkheart 2019-04-04 00:50:48 -04:00 committed by GitHub
parent 0ba1a820c0
commit 88d2488d08
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);
continue;
}
if (Helpers::validateUrl($url) == false) {
Log::info('Skipping invalid attachment URL: ' . $url);
continue;
}
$count++;
if ($count === 1) {